X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb%2Ffake_capture.h;h=ea9c3804e2c814e6304091df45c3d66e06cc900f;hb=HEAD;hp=06f7ef23dd7196278bd1da981b1b09d0cec60fc7;hpb=1833f747a9008f38e5597622f2e3dbce3340e2cb;p=bmusb diff --git a/bmusb/fake_capture.h b/bmusb/fake_capture.h index 06f7ef2..ea9c380 100644 --- a/bmusb/fake_capture.h +++ b/bmusb/fake_capture.h @@ -65,6 +65,21 @@ public: void stop_dequeue_thread() override; bool get_disconnected() const override { return false; } + std::set get_available_pixel_formats() const override + { + return std::set{ PixelFormat_8BitYCbCr, PixelFormat_10BitYCbCr }; + } + + void set_pixel_format(PixelFormat pixel_format) override + { + current_pixel_format = pixel_format; + } + + PixelFormat get_current_pixel_format() const + { + return current_pixel_format; + } + std::map get_available_video_modes() const override; void set_video_mode(uint32_t video_mode_id) override; uint32_t get_current_video_mode() const override { return 0; } @@ -82,6 +97,7 @@ private: void make_tone(int32_t *out, unsigned num_stereo_samples, unsigned num_channels); unsigned width, height, fps, audio_sample_frequency; + PixelFormat current_pixel_format = PixelFormat_8BitYCbCr; int card_index; uint8_t y, cb, cr;