mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +00:00
Allocate more frame buffers for quad modes
This commit is contained in:
parent
a2d4058c4b
commit
50d90f6dca
1 changed files with 6 additions and 2 deletions
|
@ -1784,9 +1784,13 @@ restart:
|
|||
if (start_frame == end_frame) {
|
||||
guint16 num_frames = ::NTV2DeviceGetNumberFrameBuffers(self->device_id);
|
||||
guint16 num_channels = ::NTV2DeviceGetNumFrameStores(self->device_id);
|
||||
guint start_channel = self->channel;
|
||||
guint end_channel = self->channel + 1;
|
||||
|
||||
start_frame = self->channel * (num_frames / num_channels);
|
||||
end_frame = ((self->channel + 1) * (num_frames / num_channels)) - 1;
|
||||
if (self->quad_mode) end_channel = self->channel + 4;
|
||||
|
||||
start_frame = start_channel * (num_frames / num_channels);
|
||||
end_frame = (end_channel * (num_frames / num_channels)) - 1;
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT(
|
||||
|
|
Loading…
Reference in a new issue