diff options
| author | Yonit Halperin <yhalperi@redhat.com> | 2012-04-29 11:55:01 +0300 |
|---|---|---|
| committer | Yonit Halperin <yhalperi@redhat.com> | 2012-05-03 12:30:55 +0300 |
| commit | 80f0865b44f903c8b009471377dfbe86a79ece06 (patch) | |
| tree | 6020f565fdfe69fa316140109f60baf7c816ad40 /client/glz_decoder.cpp | |
| parent | 3ccc9de184f9cb499a4f887779c9fb9bffba3210 (diff) | |
server/red_worker/video: maintain visible region and clip region for streams
Differentiate between the clipping of the video stream, and the region
that currently displays fragments of the video stream (henceforth,
vis_region). The latter equals or contains the former one. For example,
let c1 be the clip area at time t1, and c2 be the clip area at time t2,
where t1 < t2. If c1 contains c2, and at least part of c1/c2, hasn't been
covered by a non-video images, vis_region will contain c2, and also the part
of c1/c2 that still displays fragments of the video.
When we consider if a stream should be "upgraded" (1), due to its area
being used by a rendering operation, or due to stopping the video, we
should take into account the vis_region, and not the clip region (next
patch: not upgrade by the last frame, but rather by vis_region).
This fix will be more necessary when sized frames are introduced (see the
following patches). Then, the vis_region might be larger
than the last frame, and contain it, more frequently than before.
(1) "upgrading a stream" stands for sending its last frame losslessly. Or more
precisely, lossless resending of all the currently displayed lossy areas, that were
sent as part of the stream.
Diffstat (limited to 'client/glz_decoder.cpp')
0 files changed, 0 insertions, 0 deletions
