id int64 0 755k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18,722 | MfStructs.h | Const-me_Whisper/Whisper/API/MfStructs.h | #pragma once
namespace Whisper
{
struct sCaptureDevice
{
// The display name is suitable for showing to the user, but might not be unique.
const wchar_t* displayName;
// Endpoint ID for an audio capture device
// It uniquely identifies the device on the system, but is not a readable string.
const wchar_t*... | 1,324 | C++ | .h | 45 | 26.888889 | 105 | 0.741149 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,723 | loggerApi.h | Const-me_Whisper/Whisper/API/loggerApi.h | #pragma once
#include <stdint.h>
namespace Whisper
{
// Log level for messages
enum struct eLogLevel : uint8_t
{
Error = 0,
Warning = 1,
Info = 2,
Debug = 3
};
enum struct eLoggerFlags : uint8_t
{
UseStandardError = 1,
SkipFormatMessage = 2,
};
// C function pointer to receive log messages from th... | 946 | C++ | .h | 32 | 27.21875 | 146 | 0.741228 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,724 | sLanguageList.h | Const-me_Whisper/Whisper/API/sLanguageList.h | #pragma once
#include <stdint.h>
namespace Whisper
{
struct sLanguageEntry
{
uint32_t key;
int id;
const char* name;
};
struct sLanguageList
{
uint32_t length;
const sLanguageEntry* pointer;
};
} | 213 | C++ | .h | 16 | 11.25 | 32 | 0.744898 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,725 | sModelSetup.h | Const-me_Whisper/Whisper/API/sModelSetup.h | #pragma once
#include <stdint.h>
namespace Whisper
{
enum struct eModelImplementation : uint32_t
{
// GPGPU implementation based on Direct3D 11.0 compute shaders
GPU = 1,
// A hybrid implementation which uses DirectCompute for encode, and decodes on CPU
// Not implemented in the published builds of the DLL.... | 1,175 | C++ | .h | 34 | 32.058824 | 106 | 0.748018 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,726 | iMediaFoundation.cl.h | Const-me_Whisper/Whisper/API/iMediaFoundation.cl.h | #pragma once
#include "../../ComLightLib/comLightCommon.h"
#include "MfStructs.h"
struct IMFSourceReader;
namespace Whisper
{
struct DECLSPEC_NOVTABLE iAudioBuffer : public ComLight::IUnknown
{
DEFINE_INTERFACE_ID( "{013583aa-c9eb-42bc-83db-633c2c317051}" );
virtual uint32_t COMLIGHTCALL countSamples() const =... | 1,920 | C++ | .h | 38 | 47.973684 | 130 | 0.77938 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,727 | ggml.h | Const-me_Whisper/Whisper/source/ggml.h | #pragma once
//
// GGML Tensor Library
//
// This documentation is still a work in progress.
// If you wish some specific topics to be covered, feel free to drop a comment:
//
// https://github.com/ggerganov/whisper.cpp/issues/40
//
// ## Overview
//
// This library implements:
//
// - a set of tensor operations
//... | 21,451 | C++ | .h | 628 | 30.183121 | 119 | 0.651492 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,728 | whisper.h | Const-me_Whisper/Whisper/source/whisper.h | #ifndef WHISPER_H
#define WHISPER_H
#include <stdint.h>
#include <stdbool.h>
#ifdef WHISPER_SHARED
# ifdef _WIN32
# ifdef WHISPER_BUILD
# define WHISPER_API __declspec(dllexport)
# else
# define WHISPER_API __declspec(dllimport)
# endif
# else
# define WHISPER_A... | 13,919 | C++ | .h | 273 | 42.981685 | 121 | 0.643756 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,729 | HybridContext.h | Const-me_Whisper/Whisper/Hybrid/HybridContext.h | #pragma once
#include "../Whisper/WhisperModel.h"
#include "../CPU/MlContext.h"
#include "../CPU/BufferAllocator.h"
#include "KeyValueDownloader.h"
#include "../CPU/KvTensors.h"
// This version of the hybrid context uses the new, custom-built kernels
class HybridContext
{
CpuCompute::MlContext ml;
CpuCompute::Virtua... | 1,254 | C++ | .h | 41 | 28.365854 | 128 | 0.781198 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,730 | KeyValueDownloader.h | Const-me_Whisper/Whisper/Hybrid/KeyValueDownloader.h | #pragma once
#include "../Whisper/sModelParams.h"
#include "../Whisper/KeyValueBuffers.h"
#include "../D3D/MappedResource.h"
#include "../CPU/Tensor.h"
class KeyValueDownloader
{
CComPtr<ID3D11Buffer> keys, values;
uint32_t length = 0;
using E = uint16_t;
static constexpr DirectCompute::eDataType dataType = Direc... | 1,649 | C++ | .h | 54 | 27.666667 | 90 | 0.717706 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,731 | ProfileCollection.h | Const-me_Whisper/Whisper/Utils/ProfileCollection.h | #pragma once
#include <atlcoll.h>
#include "CpuProfiler.h"
namespace DirectCompute
{
enum struct eComputeShader : uint16_t;
enum struct eProfilerBlock : uint16_t;
}
namespace Whisper
{
struct WhisperModel;
enum struct eCpuBlock : uint8_t
{
LoadModel,
RunComplete,
Run,
Callbacks,
Spectrogram,
Sample,... | 2,250 | C++ | .h | 107 | 17.663551 | 72 | 0.685325 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,732 | parallelFor.h | Const-me_Whisper/Whisper/Utils/parallelFor.h | #pragma once
namespace Whisper
{
// A callback to offload to the thread pool
using pfnParallelForCallback = HRESULT( * )( int ith, void* ctx ) noexcept;
// A simple parallel for implementation; Windows includes a decent thread pool since Vista (2006)
HRESULT parallelFor( pfnParallelForCallback pfn, int threadsCou... | 1,400 | C++ | .h | 28 | 47.357143 | 159 | 0.771093 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,733 | MurmurHash3.h | Const-me_Whisper/Whisper/Utils/MurmurHash3.h | #pragma once
#include <stdint.h>
void MurmurHash3_x86_32( const void* key, int len, uint32_t seed, void* out );
void MurmurHash3_x86_128( const void* key, int len, uint32_t seed, void* out );
void MurmurHash3_x64_128( const void* key, int len, uint32_t seed, void* out );
#include <atlcoll.h>
// Traits class for `CAt... | 946 | C++ | .h | 30 | 29.266667 | 85 | 0.703622 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,734 | Logger.h | Const-me_Whisper/Whisper/Utils/Logger.h | #pragma once
#include "../API/loggerApi.h"
#ifdef __cplusplus
extern "C" {
#endif
void logError( const char8_t* pszFormat, ... );
void logError16( const wchar_t* pszFormat, ... );
void logErrorHr( long hr, const char8_t* pszFormat, ... );
void logWarning( const char8_t* pszFormat, ... );
void logWarning16( const wch... | 677 | C++ | .h | 19 | 34.421053 | 60 | 0.703364 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,735 | DelayExecution.h | Const-me_Whisper/Whisper/Utils/DelayExecution.h | #pragma once
#include <atlbase.h>
// Utility class implementing a high-resolution Sleep() function
class DelayExecution
{
using pfnDelay = void( * )( const DelayExecution& de );
pfnDelay pfn = nullptr;
CHandle timer;
static void sleepOnTheTimer( const DelayExecution& delay );
static void spinWait( const DelayExe... | 530 | C++ | .h | 20 | 24.65 | 64 | 0.759369 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,736 | ReadStream.h | Const-me_Whisper/Whisper/Utils/ReadStream.h | #pragma once
#include "../ComLightLib/streams.h"
#include "../ComLightLib/comLightServer.h"
#define WIN32_LEAN_AND_MEAN
#include <atlfile.h>
class ReadStream : public ComLight::ObjectRoot<ComLight::iReadStream>
{
CAtlFile file;
// TODO: implement a buffer in this class, at least 256kb
HRESULT COMLIGHTCALL read( vo... | 1,139 | C++ | .h | 33 | 32.454545 | 126 | 0.764279 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,737 | CpuProfiler.h | Const-me_Whisper/Whisper/Utils/CpuProfiler.h | #pragma once
namespace Whisper
{
// Get current time in CPU clock
// More specifically, each CPU core has a timestamp counter which runs at CPU's base frequency, regardless on the frequency scaling of that core.
inline int64_t tscNow()
{
return __rdtsc();
}
// Scale the time interval from CPU time stamp count... | 590 | C++ | .h | 21 | 25.761905 | 146 | 0.739823 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,738 | GpuProfiler.h | Const-me_Whisper/Whisper/Utils/GpuProfiler.h | #pragma once
#include "../D3D/device.h"
#include "ProfileCollection.h"
#include "DelayExecution.h"
namespace DirectCompute
{
enum struct eProfilerBlock : uint16_t
{
LoadModel = 0x1000,
Run = 0x2000,
Encode = 0x3000,
EncodeLayer = 0x4000,
Decode = 0x5000,
DecodeStep = 0x6000,
DecodeLayer = 0x7000,
};
... | 4,307 | C++ | .h | 159 | 23.622642 | 141 | 0.715708 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,739 | miscUtils.h | Const-me_Whisper/Whisper/Utils/miscUtils.h | #pragma once
#define CHECK( hr ) { const HRESULT __hr = ( hr ); if( FAILED( __hr ) ) return __hr; }
#define CHECK_LOG( hr ) { const HRESULT __hr = ( hr ); if( FAILED( __hr ) ) { logErrorHr(__hr, u8"%s failed", #hr ); return __hr; } }
inline void check( HRESULT hr )
{
if( SUCCEEDED( hr ) )
return;
throw hr;
}
inl... | 2,242 | C++ | .h | 75 | 28.453333 | 133 | 0.661881 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,740 | GpuProfilerSimple.h | Const-me_Whisper/Whisper/Utils/GpuProfilerSimple.h | #pragma once
#include "../D3D/device.h"
#include "DelayExecution.h"
namespace DirectCompute
{
// A simple profiler which doesn't collect anything, used to measure time it took to load the model
class GpuProfilerSimple
{
DelayExecution delay;
CComPtr<ID3D11Query> disjoint, begin, end;
public:
HRESULT create()... | 366 | C++ | .h | 15 | 22.533333 | 100 | 0.766382 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,742 | tracing.h | Const-me_Whisper/Whisper/Utils/Trace/tracing.h | #pragma once
#include "TraceWriter.h"
#include "../../ML/mlUtils.h"
namespace Tracing
{
#if SAVE_DEBUG_TRACE
void traceCreate( LPCTSTR path );
void traceClose();
iTraceWriter* getWriter();
inline HRESULT tensor( const ItemName& name, const DirectCompute::Tensor& tensor )
{
iTraceWriter* w = getWriter();
if(... | 2,329 | C++ | .h | 65 | 33.569231 | 112 | 0.720992 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,743 | TraceWriter.h | Const-me_Whisper/Whisper/Utils/Trace/TraceWriter.h | #pragma once
#include <memory>
#include "../../D3D/enums.h"
namespace DirectCompute
{
class Tensor;
}
namespace CpuCompute
{
class Tensor;
}
struct ggml_tensor;
namespace Tracing
{
using DirectCompute::eDataType;
struct ItemName
{
const char* pointer;
std::array<uint32_t, 4> args;
uint8_t countArgs;
I... | 1,575 | C++ | .h | 60 | 23.45 | 115 | 0.671315 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,744 | TraceStructures.h | Const-me_Whisper/Whisper/Utils/Trace/TraceStructures.h | #pragma once
#include <array>
#include <emmintrin.h>
#include "../../D3D/enums.h"
namespace Tracing
{
using DirectCompute::eDataType;
// File header of the trace file
struct sFileHeader
{
static constexpr uint32_t correctMagic = 0xE6B4A12Du; // random.org
uint32_t magic;
uint8_t formatVersion;
uint8_t zz... | 1,673 | C++ | .h | 48 | 32.291667 | 155 | 0.747212 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,745 | DbgNanTest.h | Const-me_Whisper/Whisper/ML/DbgNanTest.h | #pragma once
namespace DirectCompute
{
class DbgNanTest
{
CComPtr<ID3D11Buffer> bufferDefault, bufferStaging;
CComPtr<ID3D11UnorderedAccessView> uav;
public:
HRESULT create();
void destroy();
operator ID3D11UnorderedAccessView* ( ) const
{
return uav;
}
bool test() const;
};
#if DBG_TEST_NAN
c... | 366 | C++ | .h | 20 | 16.05 | 53 | 0.771014 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,746 | TensorGpuViews.h | Const-me_Whisper/Whisper/ML/TensorGpuViews.h | #pragma once
#include <stdint.h>
#include "../D3D/device.h"
namespace DirectCompute
{
class TensorGpuViews
{
protected:
CComPtr<ID3D11ShaderResourceView> srv;
CComPtr<ID3D11UnorderedAccessView> uav;
public:
operator ID3D11ShaderResourceView* ( ) const { return srv; }
operator ID3D11UnorderedAccessView* (... | 646 | C++ | .h | 26 | 22.153846 | 97 | 0.746341 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,747 | ConstantBuffer.h | Const-me_Whisper/Whisper/ML/ConstantBuffer.h | #pragma once
#include "../D3D/device.h"
#include "TensorShape.h"
namespace DirectCompute
{
// 96 bytes dynamic constant buffers, with dimensions and VRAM layout of 2-3 tensors
class ConstantBuffer
{
CComPtr<ID3D11Buffer> buffer;
public:
HRESULT create();
HRESULT update( const TensorShape& t0 );
HRESULT up... | 569 | C++ | .h | 21 | 24.714286 | 88 | 0.750459 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,748 | TensorEx.h | Const-me_Whisper/Whisper/ML/TensorEx.h | #pragma once
#include "Tensor.h"
namespace DirectCompute
{
// A tensor which supports dynamic updates from CPU, or downloads from VRAM to system RAM
class TensorEx : public Tensor
{
protected:
CComPtr<ID3D11Buffer> buffer;
CComPtr<ID3D11Buffer> stagingBuffer;
HRESULT getViewSize( uint32_t& cbElement, uint32... | 984 | C++ | .h | 33 | 26.666667 | 98 | 0.728526 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,749 | Reshaper.h | Const-me_Whisper/Whisper/ML/Reshaper.h | #pragma once
#include "Tensor.h"
namespace DirectCompute
{
// This class reshapes some of the model’s tensor, immediately after they’re loaded.
// That feature is used on all AMD GPUs.
class Reshaper
{
CComPtr<ID3D11Buffer> constantBuffer;
HRESULT createConstants();
public:
~Reshaper();
HRESULT makePanel... | 373 | C++ | .h | 15 | 22.4 | 85 | 0.768571 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,750 | MlContext.h | Const-me_Whisper/Whisper/ML/MlContext.h | #pragma once
#include <vector>
#include "TempBuffers.h"
#include "ConstantBuffer.h"
#include "Tensor.h"
#include "../Utils/GpuProfiler.h"
#include "../Utils/ProfileCollection.h"
namespace DirectCompute
{
enum struct eComputeShader : uint16_t;
class MlContext
{
// When false, the implementation is 100% compatible... | 4,392 | C++ | .h | 83 | 49.843373 | 130 | 0.734517 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,751 | Device.h | Const-me_Whisper/Whisper/ML/Device.h | #pragma once
#include <string>
#include "../D3D/sGpuInfo.h"
#include "LookupTables.h"
#include "DbgNanTest.h"
namespace DirectCompute
{
struct Device
{
CComPtr<ID3D11Device> device;
CComPtr<ID3D11DeviceContext> context;
std::vector<CComPtr<ID3D11ComputeShader>> shaders;
CComPtr<ID3D11Buffer> smallCb;
sGpu... | 986 | C++ | .h | 41 | 21.195122 | 64 | 0.749203 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,752 | Tensor.h | Const-me_Whisper/Whisper/ML/Tensor.h | #pragma once
#include "TensorShape.h"
#include "TensorGpuViews.h"
#include "../D3D/enums.h"
namespace DirectCompute
{
// A minimal tensor object sufficient to compute things on GPU, with compute shaders
// This class only takes 48 bytes in system memory, and is very cheap to make copies 'coz GPU objects are referenc... | 2,852 | C++ | .h | 63 | 42.396825 | 200 | 0.755315 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,753 | testUtilsC.h | Const-me_Whisper/Whisper/ML/testUtilsC.h | #pragma once
#ifdef __cplusplus
extern "C"
{
#endif
void printUniqueTensorSize( const char* name, const int* lhs, const int* rhs );
#ifdef __cplusplus
}
#endif | 163 | C++ | .h | 9 | 17 | 80 | 0.746753 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,754 | mlUtils.h | Const-me_Whisper/Whisper/ML/mlUtils.h | #pragma once
namespace DirectCompute
{
// Update the small dynamic constant buffer
ID3D11Buffer* __vectorcall updateSmallCb( __m128i cbData );
// Fill the tensor with either 0.0 or NaN values
void zeroMemory( ID3D11UnorderedAccessView* uav, uint32_t length, bool fillWithNaN = false );
// Fill the complete UAV w... | 677 | C++ | .h | 14 | 46.357143 | 94 | 0.801214 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,755 | tensorOpsTests.h | Const-me_Whisper/Whisper/ML/tensorOpsTests.h | #pragma once
#include "../source/ggml.h"
namespace DirectCompute
{
// void testMulMatReshape( const ggml_tensor* src1, const void* tempBuffer );
void testMulMat( const ggml_tensor* src0, const ggml_tensor* src1, const ggml_tensor* dst, const void* tempBuffer );
void computeMulMat( const ggml_tensor* src0, const ggm... | 813 | C++ | .h | 12 | 66 | 130 | 0.760951 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,756 | TensorShape.h | Const-me_Whisper/Whisper/ML/TensorShape.h | #pragma once
#include <stdint.h>
#include <array>
#include <smmintrin.h>
struct ggml_tensor;
using HRESULT = long;
namespace DirectCompute
{
// This POD structure describes the shape of a tensor.
// It’s used for both GPU tensors in VRAM, and tensors in system memory used by the Hybrid model.
struct TensorShape
{... | 3,485 | C++ | .h | 104 | 30.336538 | 150 | 0.642071 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,757 | TempBuffers.h | Const-me_Whisper/Whisper/ML/TempBuffers.h | #pragma once
#include "TensorGpuViews.h"
namespace DirectCompute
{
class TempBuffers
{
class Buffer : public TensorGpuViews
{
size_t capacity = 0;
public:
void clear()
{
TensorGpuViews::clear();
capacity = 0;
}
HRESULT resize( DXGI_FORMAT format, size_t elements, size_t cbElement, boo... | 818 | C++ | .h | 34 | 20.823529 | 92 | 0.704516 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,758 | TensorsArena.h | Const-me_Whisper/Whisper/ML/TensorsArena.h | #pragma once
#include "Tensor.h"
namespace DirectCompute
{
using pfnNewCapacity = uint32_t( * )( uint32_t current, uint32_t requested );
uint32_t defaultNewCapacity( uint32_t current, uint32_t requested );
class PooledTensor
{
TensorGpuViews views;
uint32_t capacity = 0;
public:
Tensor tensor( eDataType t... | 1,629 | C++ | .h | 69 | 20.347826 | 95 | 0.707712 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,759 | LookupTables.h | Const-me_Whisper/Whisper/ML/LookupTables.h | #pragma once
#include "../D3D/device.h"
namespace DirectCompute
{
class LookupTables
{
CComPtr<ID3D11ShaderResourceView> m_gelu, m_exponent;
public:
HRESULT create();
HRESULT createClone( const LookupTables& source );
void clear();
ID3D11ShaderResourceView* gelu() const { return m_gelu; }
ID3D11Shader... | 452 | C++ | .h | 17 | 24.235294 | 67 | 0.763341 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,760 | reshapedMultiply.h | Const-me_Whisper/Whisper/ML/reshapedMultiply.h | #pragma once
#include <stdint.h>
namespace DirectCompute
{
namespace ReshapedMultiply
{
constexpr uint32_t TILE_SIZE = 32;
}
} | 132 | C++ | .h | 9 | 13.111111 | 36 | 0.788618 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,761 | testUtils.h | Const-me_Whisper/Whisper/ML/testUtils.h | #pragma once
#include "../D3D/downloadBuffer.h"
#include "../D3D/RenderDoc/renderDoc.h"
#include <unordered_set>
#include <functional>
// Funfact: this code written by ChatGPT
namespace std
{
template<>
struct hash<array<uint32_t, 8>>
{
size_t operator()( const array<uint32_t, 8>& arr ) const
{
size_t result... | 1,491 | C++ | .h | 52 | 26.230769 | 80 | 0.706993 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,762 | LookupTablesData.h | Const-me_Whisper/Whisper/ML/LookupTablesData.h | #pragma once
#include <stdint.h>
#include <array>
namespace DirectCompute
{
struct LookupTablesData
{
std::array<uint16_t, 0x10000> gelu;
std::array<uint16_t, 0x10000> exponent;
LookupTablesData();
};
} | 213 | C++ | .h | 12 | 15.916667 | 41 | 0.76 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,763 | convertThings.h | Const-me_Whisper/Whisper/source.compat/convertThings.h | #pragma once
#include "../source/whisper.h"
#include "../API/sFullParams.h"
#include "../API/iTranscribeResult.cl.h"
Whisper::sFullParams makeNewParams( const whisper_full_params& rsi );
whisper_full_params makeOldParams( const Whisper::sFullParams& rsi, Whisper::iContext* context );
HRESULT makeNewResults( whisper_... | 397 | C++ | .h | 7 | 55.428571 | 109 | 0.786082 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,764 | LoadModelDlg.h | Const-me_Whisper/Examples/WhisperDesktop/LoadModelDlg.h | #pragma once
#include "AppState.h"
#include "Utils/WTL/atlddx.h"
#include "Utils/miscUtils.h"
class LoadModelDlg:
public CDialogImpl<LoadModelDlg>,
public CWinDataExchange<LoadModelDlg>,
public iThreadPoolCallback
{
AppState& appState;
public:
static constexpr UINT IDD = IDD_OPEN_MODEL;
static constexpr UINT WM_... | 2,085 | C++ | .h | 58 | 33.637931 | 85 | 0.77695 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,766 | targetver.h | Const-me_Whisper/Examples/WhisperDesktop/targetver.h | #pragma once
// Setup Windows SDK to only enable features available since Windows 8.0
#include <WinSDKVer.h>
#define _WIN32_WINNT _WIN32_WINNT_WIN8
#define NTDDI_VERSION NTDDI_WIN8
#include <SDKDDKVer.h>
| 204 | C++ | .h | 6 | 33 | 72 | 0.80303 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,767 | stdafx.h | Const-me_Whisper/Examples/WhisperDesktop/stdafx.h | #pragma once
#include "framework.h"
#include <whisperWindows.h>
#include "resource.h"
#include "Utils/WTL/atlapp.h"
#include "Utils/WTL/atlctrls.h" | 149 | C++ | .h | 6 | 23.666667 | 31 | 0.78169 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,768 | CaptureDlg.h | Const-me_Whisper/Examples/WhisperDesktop/CaptureDlg.h | #pragma once
#include "AppState.h"
#include "Utils/WTL/atlddx.h"
#include "Utils/miscUtils.h"
#include "Utils/LanguageDropdown.h"
#include "Utils/TranslateCheckbox.h"
#include "Utils/PendingState.h"
#include "CircleIndicator.h"
class CaptureDlg :
public CDialogImpl<CaptureDlg>,
public CWinDataExchange<CaptureDlg>,
... | 4,137 | C++ | .h | 116 | 33.224138 | 115 | 0.787127 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,769 | Resource.h | Const-me_Whisper/Examples/WhisperDesktop/Resource.h | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by WhisperDesktop.rc
//
#define IDC_MYICON 2
#define IDD_WHISPERDESKTOP_DIALOG 102
#define IDM_ABOUT 104
#define IDI_WHISPERDESKTOP 107
#define IDI_SMALL 108
... | 2,764 | C++ | .h | 67 | 40.223881 | 47 | 0.537092 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,770 | CircleIndicator.h | Const-me_Whisper/Examples/WhisperDesktop/CircleIndicator.h | #pragma once
#include "Utils/miscUtils.h"
#include "Utils/WTL/atlcrack.h"
// This control renders a black circle, and in the active state, the circle is filled with a bright color.
class CircleIndicator: public CWindowImpl<CircleIndicator>
{
public:
static ATL::CWndClassInfo& GetWndClassInfo();
BEGIN_MSG_MAP( Circl... | 761 | C++ | .h | 29 | 24.241379 | 106 | 0.768595 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,771 | ModelAdvancedDlg.h | Const-me_Whisper/Examples/WhisperDesktop/ModelAdvancedDlg.h | #pragma once
#include "AppState.h"
#include "Utils/WTL/atlddx.h"
#include "Utils/miscUtils.h"
class ModelAdvancedDlg :
public CDialogImpl<ModelAdvancedDlg>
{
CComboBox cbWave, cbReshapedMatMul, cbAdapter;
AppState& appState;
public:
static constexpr UINT IDD = IDD_MODEL_ADV;
ModelAdvancedDlg( AppState& app ) : ... | 702 | C++ | .h | 26 | 24.884615 | 85 | 0.761976 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,772 | TranscribeDlg.h | Const-me_Whisper/Examples/WhisperDesktop/TranscribeDlg.h | #pragma once
#include "AppState.h"
#include "Utils/WTL/atlddx.h"
#include "Utils/WTL/atlcrack.h"
#include "Utils/miscUtils.h"
#include "Utils/LanguageDropdown.h"
#include "Utils/TranslateCheckbox.h"
#include "Utils/PendingState.h"
class TranscribeDlg :
public CDialogImpl<TranscribeDlg>,
public CWinDataExchange<Trans... | 4,528 | C++ | .h | 117 | 36.324786 | 127 | 0.786007 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,773 | AppState.h | Const-me_Whisper/Examples/WhisperDesktop/AppState.h | #pragma once
#include "Utils/DebugConsole.h"
class AppState
{
bool coInit = false;
CRegKey registryKey;
CIcon appIcon;
public:
struct ModelSource
{
CString path;
bool found = false;
Whisper::eModelImplementation impl = (Whisper::eModelImplementation)0;
uint64_t sizeInBytes = 0;
};
ModelSource source;
... | 1,207 | C++ | .h | 42 | 26.547619 | 72 | 0.780382 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,774 | PendingState.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/PendingState.h | #pragma once
// Utility class to switch visual state of dialog controls between idle and pending
class PendingState
{
std::vector<HWND> editorsWindows;
std::vector<bool> wasEnabled;
std::vector<HWND> pendingWindows;
public:
void initialize( std::initializer_list<HWND> editors, std::initializer_list<HWND> pending )... | 361 | C++ | .h | 11 | 31.363636 | 93 | 0.794286 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,775 | LanguageDropdown.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/LanguageDropdown.h | #pragma once
#include "../AppState.h"
// Dropdown list which implements language selector control
class LanguageDropdown
{
HWND m_hWnd = nullptr;
std::vector<uint32_t> keys;
int getInitialSelection( AppState& state ) const;
public:
operator HWND() const
{
return m_hWnd;
}
// Query language list form the nat... | 732 | C++ | .h | 21 | 32.952381 | 85 | 0.772277 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,776 | DebugConsole.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/DebugConsole.h | #pragma once
#include <whisperWindows.h>
#include <deque>
#include <unordered_set>
class AppState;
class DebugConsole
{
using eLogLevel = Whisper::eLogLevel;
struct Entry
{
eLogLevel level;
CStringA message;
HRESULT print( HANDLE hConsole, CString& tempString ) const;
};
CComAutoCriticalSection critSec;
... | 1,396 | C++ | .h | 50 | 25.8 | 90 | 0.770443 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,777 | logger.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/logger.h | #pragma once
#include <whisperWindows.h>
#include <cstdarg>
void logMessage( Whisper::eLogLevel lvl, const char8_t* pszFormat, va_list args );
#define LOG_MESSAGE_IMPL( lvl ) \
std::va_list args; \
va_start( args, pszFormat ); \
logMessage( lvl, pszFormat, args ... | 1,054 | C++ | .h | 30 | 33.666667 | 115 | 0.696464 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,778 | TranslateCheckbox.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/TranslateCheckbox.h | #pragma once
#include "../AppState.h"
class TranslateCheckbox
{
HWND m_hWnd = nullptr;
public:
operator HWND() const
{
return m_hWnd;
}
void initialize( HWND owner, int idc, AppState& state );
bool checked();
void saveSelection( AppState& state );
}; | 263 | C++ | .h | 14 | 16.928571 | 57 | 0.735772 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,779 | miscUtils.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/miscUtils.h | #pragma once
#include <iContext.h>
#include "logger.h"
CString formatErrorMessage( HRESULT hr );
void reportFatalError( const char* what, HRESULT hr );
#define CHECK( hr ) { const HRESULT __hr = ( hr ); if( FAILED( __hr ) ) return __hr; }
HRESULT implParse( const CString& s, Whisper::eModelImplementation& rdi );
L... | 2,048 | C++ | .h | 55 | 35.309091 | 111 | 0.696247 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,785 | atlcrack.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/WTL/atlcrack.h | // Windows Template Library - WTL version 10.0
// Copyright (C) Microsoft Corporation, WTL Team. All rights reserved.
//
// This file is a part of the Windows Template Library.
// The use and distribution terms for this software are covered by the
// Microsoft Public License (http://opensource.org/licenses/MS-PL)
// wh... | 64,515 | C++ | .h | 2,234 | 26.414503 | 145 | 0.670235 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | true | false | false | false | false | false | false |
18,786 | atlres.h | Const-me_Whisper/Examples/WhisperDesktop/Utils/WTL/atlres.h | // Windows Template Library - WTL version 10.0
// Copyright (C) Microsoft Corporation, WTL Team. All rights reserved.
//
// This file is a part of the Windows Template Library.
// The use and distribution terms for this software are covered by the
// Microsoft Public License (http://opensource.org/licenses/MS-PL)
// wh... | 9,477 | C++ | .h | 214 | 42.635514 | 80 | 0.569972 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | true | false | false | false | false | false | false |
18,788 | dr_wav.h | Const-me_Whisper/Examples/OldMain/dr_wav.h | /*
WAV audio loader and writer. Choice of public domain or MIT-0. See license statements at the end of this file.
dr_wav - v0.12.16 - 2020-12-02
David Reid - mackron@gmail.com
GitHub: https://github.com/mackron/dr_libs
*/
/*
RELEASE NOTES - VERSION 0.12
============================
Version 0.12 includes breaking cha... | 241,358 | C++ | .h | 5,266 | 39.350741 | 269 | 0.662126 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,789 | Logger.h | Const-me_Whisper/Examples/OldMain/Utils/Logger.h | #pragma once
#ifdef __cplusplus
extern "C" {
#endif
struct ggml_tensor;
void logError( const char8_t* pszFormat, ... );
void logWarning( const char8_t* pszFormat, ... );
void logInfo( const char8_t* pszFormat, ... );
void logDebug( const char8_t* pszFormat, ... );
#ifdef __cplusplus
}
namespace Tracing
{
struct... | 742 | C++ | .h | 25 | 27.96 | 79 | 0.703652 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,790 | params.h | Const-me_Whisper/Examples/main/params.h | #pragma once
#include <vector>
#include <string>
// command-line parameters
struct whisper_params
{
uint32_t n_threads;
uint32_t n_processors = 1;
uint32_t offset_t_ms = 0;
uint32_t offset_n = 0;
uint32_t duration_ms = 0;
uint32_t max_context = UINT_MAX;
uint32_t max_len = 0;
float word_thold = 0.01f;
bool ... | 884 | C++ | .h | 33 | 24.848485 | 83 | 0.72071 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,791 | miscUtils.h | Const-me_Whisper/Examples/main/miscUtils.h | #pragma once
#include <string>
std::string utf8( const std::wstring& utf16 );
std::wstring utf16( const std::string& u8 );
using HRESULT = long;
void printError( const char* what, HRESULT hr ); | 196 | C++ | .h | 6 | 31.333333 | 48 | 0.739362 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,792 | textWriter.h | Const-me_Whisper/Examples/main/textWriter.h | #pragma once
#include "../../Whisper/API/iContext.cl.h"
// These functions print output segments into text files of various formats
HRESULT writeText( Whisper::iContext* context, LPCTSTR audioPath, bool timestamps );
HRESULT writeSubRip( Whisper::iContext* context, LPCTSTR audioPath );
HRESULT writeWebVTT( Whisper::iC... | 357 | C++ | .h | 6 | 58.5 | 84 | 0.797721 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,793 | languageCodez.inl | Const-me_Whisper/Whisper/Whisper/languageCodez.inl | // This file is generated by a tool, from the `languageCodez.tsv` file in this repository
Lang{ 0x6661, 68, "afrikaans" },
Lang{ 0x7173, 58, "albanian" },
Lang{ 0x6D61, 75, "amharic" },
Lang{ 0x7261, 13, "arabic" },
Lang{ 0x7968, 53, "armenian" },
Lang{ 0x7361, 91, "assamese" },
Lang{ 0x7A61, 45, "azerbaijani" },
Lang{... | 3,163 | C++ | .inl | 100 | 30.63 | 89 | 0.63761 | Const-me/Whisper | 8,145 | 691 | 142 | MPL-2.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,795 | timeline-tests.cpp | olive-editor_olive/tests/timeline/timeline-tests.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 19,502 | C++ | .cpp | 476 | 36.697479 | 114 | 0.671394 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,796 | compositing-tests.cpp | olive-editor_olive/tests/compositing/compositing-tests.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 996 | C++ | .cpp | 23 | 40.869565 | 71 | 0.78112 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,797 | common-tests.cpp | olive-editor_olive/tests/general/common-tests.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 1,584 | C++ | .cpp | 38 | 38.868421 | 71 | 0.755049 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,798 | main.cpp | olive-editor_olive/app/main.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 12,176 | C++ | .cpp | 276 | 39.884058 | 161 | 0.713138 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,799 | version.cpp | olive-editor_olive/app/version.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 864 | C++ | .cpp | 19 | 42.736842 | 71 | 0.783493 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,800 | core.cpp | olive-editor_olive/app/core.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 49,304 | C++ | .cpp | 1,317 | 32.106302 | 158 | 0.680702 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,801 | timelineundoripple.cpp | olive-editor_olive/app/timeline/timelineundoripple.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 15,939 | C++ | .cpp | 430 | 30.351163 | 113 | 0.627578 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,802 | timelineworkarea.cpp | olive-editor_olive/app/timeline/timelineworkarea.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 3,045 | C++ | .cpp | 90 | 30.988889 | 98 | 0.740184 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,803 | timelineundosplit.cpp | olive-editor_olive/app/timeline/timelineundosplit.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 4,975 | C++ | .cpp | 139 | 31.611511 | 96 | 0.676814 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,804 | timelineundopointer.cpp | olive-editor_olive/app/timeline/timelineundopointer.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 11,764 | C++ | .cpp | 320 | 31.74375 | 126 | 0.654684 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,805 | timelinecoordinate.cpp | olive-editor_olive/app/timeline/timelinecoordinate.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 1,474 | C++ | .cpp | 47 | 29.148936 | 118 | 0.772663 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,806 | timelineundotrack.cpp | olive-editor_olive/app/timeline/timelineundotrack.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 765 | C++ | .cpp | 17 | 42.117647 | 71 | 0.774324 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,807 | timelineundogeneral.cpp | olive-editor_olive/app/timeline/timelineundogeneral.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 20,332 | C++ | .cpp | 546 | 32.587912 | 213 | 0.675617 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,808 | timelinemarker.cpp | olive-editor_olive/app/timeline/timelinemarker.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 10,280 | C++ | .cpp | 315 | 29.374603 | 125 | 0.718336 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,809 | timelineundoworkarea.cpp | olive-editor_olive/app/timeline/timelineundoworkarea.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 768 | C++ | .cpp | 17 | 42.294118 | 71 | 0.775236 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,810 | taskmanager.cpp | olive-editor_olive/app/task/taskmanager.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 2,937 | C++ | .cpp | 110 | 23.8 | 88 | 0.712241 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,811 | conform.cpp | olive-editor_olive/app/task/conform/conform.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 1,614 | C++ | .cpp | 38 | 39.526316 | 158 | 0.747436 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,812 | customcachetask.cpp | olive-editor_olive/app/task/customcache/customcachetask.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 1,335 | C++ | .cpp | 45 | 26.955556 | 71 | 0.74077 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,813 | saveotio.cpp | olive-editor_olive/app/task/project/saveotio/saveotio.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 8,022 | C++ | .cpp | 191 | 35.591623 | 130 | 0.665166 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,814 | loadotio.cpp | olive-editor_olive/app/task/project/loadotio/loadotio.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 11,990 | C++ | .cpp | 260 | 38.388462 | 180 | 0.652853 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,815 | import.cpp | olive-editor_olive/app/task/project/import/import.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 9,025 | C++ | .cpp | 216 | 35.703704 | 116 | 0.678719 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,816 | importerrordialog.cpp | olive-editor_olive/app/task/project/import/importerrordialog.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 1,649 | C++ | .cpp | 39 | 38.666667 | 99 | 0.760025 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,817 | save.cpp | olive-editor_olive/app/task/project/save/save.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 2,343 | C++ | .cpp | 63 | 33.873016 | 100 | 0.749226 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,818 | loadbasetask.cpp | olive-editor_olive/app/task/project/load/loadbasetask.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 922 | C++ | .cpp | 23 | 37.391304 | 71 | 0.769663 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,819 | load.cpp | olive-editor_olive/app/task/project/load/load.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 2,387 | C++ | .cpp | 63 | 34.380952 | 115 | 0.745447 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,820 | render.cpp | olive-editor_olive/app/task/render/render.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 11,015 | C++ | .cpp | 245 | 37.665306 | 154 | 0.665763 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,821 | precachetask.cpp | olive-editor_olive/app/task/precache/precachetask.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 3,141 | C++ | .cpp | 80 | 35.9 | 153 | 0.740521 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,822 | export.cpp | olive-editor_olive/app/task/export/export.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 8,792 | C++ | .cpp | 228 | 32.407895 | 131 | 0.65632 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,823 | viewerwindow.cpp | olive-editor_olive/app/widget/viewer/viewerwindow.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 2,520 | C++ | .cpp | 78 | 29.641026 | 106 | 0.737997 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,824 | viewersizer.cpp | olive-editor_olive/app/widget/viewer/viewersizer.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 8,008 | C++ | .cpp | 221 | 32.642534 | 157 | 0.704534 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,825 | audiowaveformview.cpp | olive-editor_olive/app/widget/viewer/audiowaveformview.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 2,734 | C++ | .cpp | 75 | 33.386667 | 130 | 0.740122 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,826 | viewerdisplay.cpp | olive-editor_olive/app/widget/viewer/viewerdisplay.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 39,983 | C++ | .cpp | 1,139 | 30.352941 | 160 | 0.671515 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,827 | viewer.cpp | olive-editor_olive/app/widget/viewer/viewer.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 59,342 | C++ | .cpp | 1,495 | 34.772575 | 327 | 0.700774 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,828 | viewertexteditor.cpp | olive-editor_olive/app/widget/viewer/viewertexteditor.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 20,217 | C++ | .cpp | 475 | 38.964211 | 148 | 0.738592 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,829 | viewerpreventsleep.cpp | olive-editor_olive/app/widget/viewer/viewerpreventsleep.cpp | #include "viewerpreventsleep.h"
#include <QtGlobal>
#if defined(Q_OS_WINDOWS)
#include <windows.h>
#elif defined(Q_OS_MAC)
#include <IOKit/pwr_mgt/IOPMLib.h>
#elif defined(Q_OS_LINUX)
#include <QtDBus/QtDBus>
#endif
namespace olive {
#if defined(Q_OS_MAC)
IOPMAssertionID assertionID = 0;
#elif defined(Q_OS_LINUX)
... | 2,036 | C++ | .cpp | 62 | 27.870968 | 132 | 0.686035 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
18,830 | footageviewer.cpp | olive-editor_olive/app/widget/viewer/footageviewer.cpp | /***
Olive - Non-Linear Video Editor
Copyright (C) 2022 Olive Team
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.... | 3,407 | C++ | .cpp | 93 | 33.591398 | 109 | 0.760353 | olive-editor/olive | 8,144 | 552 | 131 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.