feat:slave 300Hz

This commit is contained in:
2025-10-31 10:03:43 +08:00
parent f411ab21cb
commit 6ed795a2b6
97 changed files with 257 additions and 47645 deletions

View File

@@ -1,9 +1,11 @@
#pragma once
#include <cstdint>
#include <cstddef>
#include <future>
#include <string_view>
#include <vector>
#include <initializer_list>
#include <nlohmann/json.hpp>
namespace ffmsep {
@@ -59,6 +61,7 @@ struct CPCodec {
using CloseFn = void(*)(CPCodecContext*);
using SendPacketFn = int(*)(CPCodecContext*, const CPPacket&);
using ReceiveFrameFn = int(*)(CPCodecContext*, CPFrame&);
using PresistFrameFn = int(*)(CPCodecContext*);
const char* name = nullptr;
const char* long_name = nullptr;
@@ -69,11 +72,13 @@ struct CPCodec {
CloseFn close = nullptr;
SendPacketFn send_packet = nullptr;
ReceiveFrameFn receive_frame = nullptr;
PresistFrameFn presistend = nullptr;
};
struct CPCodecContext {
const CPCodec* codec = nullptr;
void* priv_data = nullptr;
void* record_data = nullptr;
CPMediaType codec_type = CPMediaType::Unknow;
bool is_open = false;