mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:26:30 +00:00
polish autodetection
This commit is contained in:
@@ -47,11 +47,6 @@ public class VLCFrameExtractor(LibVLC libVLC)
|
||||
_width = videoTrack.Data.Video.Width;
|
||||
_height = videoTrack.Data.Video.Height;
|
||||
|
||||
//rescaling to DEFAULT_WIDTH
|
||||
//TODO: probably rescaling is not necessary, should be checked
|
||||
//_width = DEFAULT_WIDTH;
|
||||
//_height = (uint)(DEFAULT_WIDTH * _height / (double)_width);
|
||||
|
||||
_pitch = Align32(_width * RGBA_BYTES);
|
||||
_lines = Align32(_height);
|
||||
_mediaPlayer.SetRate(PLAYBACK_RATE);
|
||||
@@ -81,7 +76,6 @@ public class VLCFrameExtractor(LibVLC libVLC)
|
||||
|
||||
yield return (frameInfo.Time, ms);
|
||||
|
||||
Console.WriteLine($"Queue size: {FramesQueue.Count}");
|
||||
frameInfo.Bitmap?.Dispose();
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user