Circular Queue Video Buffering for UVC Transmission Lag

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing video source transmission methods using ping-pong buffering mechanisms face challenges with video source lag and loss due to variations in reading speed between the UVC channel and data buffer regions.

Innovation Solution

A video source transmission apparatus that utilizes a circular queue to buffer video frames, allowing adaptive adjustment of writing speed based on the reading speed of the external host device, thereby preventing buffer saturation or insufficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If a ping-pong buffering mechanism with two data buffer regions is used to transmit video frames, then video source transmission can be achieved, but video source lag occurs when the UVC channel quickly obtains video sources and video source loss occurs when the UVC channel reads slowly

Engineering Contradiction:
Improvevideo source transmission speedVSAvoidvideo source completeness
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent applies dynamics by making the buffer region selection adaptive rather than static. The control module dynamically determines whether to use the first or second data buffer region based on real-time reading speed detection of the UVC channel. When reading speed is fast, one buffer is used; when reading speed is slow, the other buffer is used. This dynamic adaptation resolves the contradiction between transmission speed and reliability by allowing the system to optimize buffer usage according to actual reading conditions, preventing both video source lag and loss.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent implements feedback by continuously monitoring the reading speed of the UVC channel and using this information to control buffer region selection. The control module detects the reading speed and adjusts the buffer usage accordingly, creating a closed-loop control system. This feedback mechanism ensures that the video transmission system adapts to varying reading speeds, maintaining reliable video source transmission without lag or loss by responding to actual system performance in real-time.

Inventive Principle:
Principle #23Feedback

2Productivity

If video frames are written into data buffer regions quickly to match fast UVC channel reading, then transmission speed is improved, but video source lag occurs when reading speed varies

Engineering Contradiction:
Improvevideo frame writing speedVSAvoidvideo source lag
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent resolves this contradiction through dynamic buffer region switching. Instead of maintaining a fixed writing speed that may cause lag when reading speed varies, the system dynamically selects between first and second data buffer regions based on detected reading speed. This allows the writing operation to maintain high productivity while the system adapts to reading speed variations, preventing video source lag by ensuring the active buffer is always appropriate for current reading conditions.

Inventive Principle:
Principle #15Dynamics

3Reliability

If the UVC channel reads video sources slowly from data buffer regions, then transmission stability is improved, but video source loss occurs

Engineering Contradiction:
Improvevideo source transmission stabilityVSAvoidvideo source loss
Core Design Contradiction:
ReliabilityVSLoss of information

Solution Approach 1:

The patent applies beforehand cushioning by maintaining two data buffer regions as a backup mechanism. When the UVC channel reads slowly from one buffer region, the system can switch to the other buffer region that has been pre-filled with video frames. This prior cushioning ensures that even if one buffer is depleted due to slow reading, the system can continue transmission without video source loss by switching to the备用 buffer region.

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

4Productivity

If two data buffer regions are used in a ping-pong buffering mechanism, then video source transmission is achieved, but the system complexity increases compared to single buffer approaches

Engineering Contradiction:
Improvevideo source transmission capabilityVSAvoidbuffer management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent applies segmentation by dividing the buffering function into two separate data buffer regions, each handling specific reading speed conditions. This segmentation allows the system to achieve reliable video source transmission by assigning different buffers to different operational modes (fast reading vs. slow reading). The control module manages this segmented structure by selecting the appropriate buffer based on detected reading speed, making the complexity manageable through clear functional division rather than a single complex buffer management system.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20250080761A1Video source transmission apparatus and method, and computer storage medium
Publication Date: 2025.03.06 AMLOGIC (SHANGHAI) CO LTD
  • US20250080761A1 patent drawing
  • US20250080761A1 patent drawing
  • US20250080761A1 patent drawing

AI summary

The disclosure discloses a video source transmission apparatus, a video source transmission method and a computer storage medium. The video source transmission apparatus includes: a video source acquisition module configured to capture video sources in multiple formats; a video source transmission module configured to transmit a video source; a control module connected with the video source acquisition module and the video source transmission module, the control module being configured to: obtain a video source to be transmitted from the video sources in multiple formats; buffer the video source to be transmitted in a circular queue; and control, after receiving a transmission control instruction, the video source transmission module to sequentially transmit the video source to be transmitted in the circular queue.