feat: windows basic impl
This commit is contained in:
parent
59475c0020
commit
1684b7655c
6 changed files with 62 additions and 10 deletions
|
|
@ -8,15 +8,18 @@ public:
|
|||
TextureRgba(flutter::TextureRegistrar* texture_registrar);
|
||||
~TextureRgba();
|
||||
|
||||
void MarkVideoFrameAvailable(uint8_t* buffer, int32_t width, int32_t height);
|
||||
void MarkVideoFrameAvailable(const std::vector<uint8_t>& buffer, size_t width, size_t height);
|
||||
|
||||
int64_t texture_id() const { return texture_id_; };
|
||||
|
||||
const FlutterDesktopPixelBuffer* buffer();
|
||||
|
||||
private:
|
||||
FlutterDesktopPixelBuffer flutter_pixel_buffer_{};
|
||||
flutter::TextureRegistrar* texture_registrar_ = nullptr;
|
||||
std::unique_ptr<flutter::TextureVariant> texture_ = nullptr;
|
||||
int64_t texture_id_;
|
||||
mutable std::mutex mutex_;
|
||||
std::vector<uint8_t> buffer_tmp_;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue