Add get_image method to Stream (#61918)

* Add get_image method to Stream

* Add KeyFrameConverter class
This commit is contained in:
uvjustin 2021-12-23 00:24:53 +08:00 committed by GitHub
parent eda9291ca1
commit 6e13605cad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 153 additions and 6 deletions

View file

@ -29,4 +29,5 @@ def mock_turbo_jpeg(
(second_width, second_height, 0, 0),
]
mocked_turbo_jpeg.scale_with_quality.return_value = EMPTY_8_6_JPEG
mocked_turbo_jpeg.encode.return_value = EMPTY_8_6_JPEG
return mocked_turbo_jpeg