Category "c++"

Error submitting the frame for encoding when submitting NV12 texture

I'm trying to encode D3D11 NV12 Texture on QSV encoder but getting [h264_qsv @ 00000244ce6f50c0] Error submitting the frame for encoding. Main: int width = 1920

3D head mesh morphing from one mesh into another using scripts (C, C++, python etc) [closed]

I have 2 3D head images and want to morph one into the other (animation) without using blender, three.js etc. I want to do it using coding pre

How do I correctly memoize this recurrence relation?

I am solving a problem: Given a list of integers nums, write a function that returns the largest sum of non-adjacent numbers. Numbers can be 0 or negative. Fo

clang 14.00 : _GLIBCXX11_DEPRECATED_SUGGEST("std::bind");

Installed clang 14.0 using GNU/Guix's clang-toolchain package. I am getting depreciated feature usage error when trying to compile a simple code: //build with:

Write empty packets into avi file ffmpeg

A task: I have a trusted video event detector. I trust to my event detector for 100% and I want to write an uncompressed frame to my avi containter only if my e

Calling a protected function from instance inside a derived class

Currently, I am trying to solve the following situation. I have a classB which contains some objects from a classA. Each classA has a function foo which needs t

How to create custom ConfigVersion.cmake

I am creating a c++ header only library and using CMake as my build system. I am pretty new with CMake, but after I read some blog posts, documentation and look

MISRA 5-0-15 - Pointer Arithmetic - Rule Violation

The following code violates the MISRA C++ rule 5-0-15: Array indexing shall be the only form of pointer arithmetic. (1) void doSomething(const uint8_t *&ptr

default constructor of "Library::Transaction" cant be referenced -- it's a deleted function

I really don't know what is wrong with my code, I have only pasted the entire code now (EDIT 1). #include "../../std_lib_facilities.h" class Date { public:

Linux read dilemma

I need to read from a fifo. Using ssize_t read(int fd, void *buf, size_t count);, I faced the following situation. When a large set of data must be read from fi

What does 'corrupt value' mean on iOS?

I'm writing C++ on my iOS app. When I call a v->assign(anotherVec.begin(), anotherVec.end()) it always show me malloc: Incorrect checksum for freed object 0x

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

How to write c++ code to reverse a string without using inbuilt function?

I have write this code. It does not show any error but string is not reversed.please let me know where i have made the mistake? I'm using codeblock to write cod

Array of structures, file opening, distance comparison

I'm trying to make an array of structures using data from a file, and then calculate the distance from a user inputted point to the closest data point. I am los

General question about nearest neighbor data structures

I want to improve the speed of my feature matching algorithm. The matching is based on comparing feature A with circularly shifted feature B. The shifting is pe

What's the right way to send a multi dimensional array from a python script to a C++ code using NamedPipes?

I have a C++ code that expects a struct with this exact formate to be send to it through a NamedPipe:- struct InputData { const std::array<std::array<fl

What's the right way to send a multi dimensional array from a python script to a C++ code using NamedPipes?

I have a C++ code that expects a struct with this exact formate to be send to it through a NamedPipe:- struct InputData { const std::array<std::array<fl

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Ignite C++. Can the following APIs be used?

I was wondering if the following APIs are available in Ignite C++. And if they are not available, what would be a reasonable alternative to implementing the sam

Create rectangle from given words by some rules

i got this task to make, but i am completely lost. I don't know how to make this... Could you please give me some ideas? I started making it and only thing i ma