4#include "H264EncoderP4.h"
53template <
typename Alloc = H264P4_DEFAULT_ALLOCATOR>
68 size_t write(uint8_t c)
override {
return write(&c, 1); }
69 size_t write(
const uint8_t *data,
size_t len)
override {
71 if (
p_out !=
nullptr) result =
p_out->write(data, len);
111 config_.pic_type = ESP_H264_RAW_FMT_O_UYY_E_VYY;
115 config_.pic_type = ESP_H264_RAW_FMT_RGB565_LE;
119 config_.pic_type = ESP_H264_RAW_FMT_YUYV;
123 LOGW(
"H264EncoderESP32P4: unsupported VideoFormat %d", (
int)format);
185 size_t write(
const uint8_t *data,
size_t len)
override {
191 size_t cSize = ySize / 4;
192 if (len < ySize + 2 * cSize)
break;
193 const uint8_t *srcY = data;
194 const uint8_t *srcU = data + ySize;
195 const uint8_t *srcV = data + ySize + cSize;
221 typename esp_h264_p4::H264EncoderP4<Alloc>::Config
config_;
VideoFormat
Video codec/pixel-format identifier, shared by two unrelated uses: the (single) video stream of a con...
Definition VideoOutput.h:29
@ RGB565
Definition VideoOutput.h:35
@ H264
Definition VideoOutput.h:30
@ I420
Definition VideoOutput.h:38
@ YUV422
Definition VideoOutput.h:34