summaryrefslogtreecommitdiff
path: root/src/rmd_get_frame.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-11-08 20:30:03 -0800
committerVito Caputo <vcaputo@pengaru.com>2020-11-08 20:41:28 -0800
commit44d25eeed23e6bb4b6c95acca38b039d5af99d00 (patch)
tree9307fb055329f5aa7d27784f3f8b162f322d2001 /src/rmd_get_frame.c
parentf2f4c34760de661f1dfe33c06760053692fece90 (diff)
cache: pivot to new CacheFile API
This minimally switches all the ad-hoc image cache files handling over to using CacheFile. I left the audio cache alone for now as it seems to not be compressed. It might make sense in the future to switch that over as well, especially if I start adding features to CacheFile like preallocating and async periodic fdatasync.
Diffstat (limited to 'src/rmd_get_frame.c')
-rw-r--r--src/rmd_get_frame.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rmd_get_frame.c b/src/rmd_get_frame.c
index 9524333..1a5f4d0 100644
--- a/src/rmd_get_frame.c
+++ b/src/rmd_get_frame.c
@@ -262,6 +262,12 @@ static void rmdBlocksFromList( RectArea **root,
}
}
+/* This thread just samples the recorded window in response to rmdTimer's
+ * triggers, updating the yuv buffer hopefully at the desired frame rate.
+ * Following every update, the time_frameno is propogated to capture_frameno
+ * and image_buffer_ready is signaled for the cache/encode side to consume the
+ * yuv buffer.
+ */
void *rmdGetFrame(ProgData *pdata)
{
int blocks_w = pdata->enc_data->yuv.y_width / Y_UNIT_WIDTH,
© All Rights Reserved