H.264 Codec for ESP32-S3
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
PSRAMAllocatorH264.h File Reference

Header-only C++ allocator that prefers PSRAM allocation on ESP32. More...

#include <cstdlib>
#include <cstring>
#include <new>
#include <type_traits>
#include <vector>
#include "H264Config.h"
#include "h264/esp_h264_alloc.h"
Include dependency graph for PSRAMAllocatorH264.h:

Go to the source code of this file.

Classes

class  PSRAMAllocatorH264< T >
 STL-compatible allocator that prefers PSRAM allocation with fallback. More...
 
struct  PSRAMAllocatorH264< T >::rebind< U >
 Rebind allocator to different type. More...
 

Namespaces

namespace  esp_h264
 

Typedefs

template<typename T >
using PSVec = std::vector< T, PSRAMAllocatorH264< T > >
 Convenience type alias for vectors using PSRAMAllocatorH264.
 

Functions

template<class T , class U >
bool operator== (const esp_h264::PSRAMAllocatorH264< T > &, const esp_h264::PSRAMAllocatorH264< U > &) noexcept
 Equality operator for PSRAMAllocatorH264 instances.
 
template<class T , class U >
bool operator!= (const esp_h264::PSRAMAllocatorH264< T > &, const esp_h264::PSRAMAllocatorH264< U > &) noexcept
 Inequality operator for PSRAMAllocatorH264 instances.
 

Detailed Description

Header-only C++ allocator that prefers PSRAM allocation on ESP32.

Function Documentation

◆ operator!=()

bool operator!= ( const esp_h264::PSRAMAllocatorH264< T > &  ,
const esp_h264::PSRAMAllocatorH264< U > &   
)
inlinenoexcept

Inequality operator for PSRAMAllocatorH264 instances.

All PSRAMAllocatorH264 instances are considered equal, so inequality always returns false.

Template Parameters
TFirst allocator's value type
USecond allocator's value type
Parameters
lhsFirst allocator
rhsSecond allocator
Returns
false Always returns false

◆ operator==()

bool operator== ( const esp_h264::PSRAMAllocatorH264< T > &  ,
const esp_h264::PSRAMAllocatorH264< U > &   
)
inlinenoexcept

Equality operator for PSRAMAllocatorH264 instances.

All PSRAMAllocatorH264 instances are considered equal regardless of their template type parameter, as required by STL allocator requirements.

Template Parameters
TFirst allocator's value type
USecond allocator's value type
Parameters
lhsFirst allocator
rhsSecond allocator
Returns
true Always returns true