diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 11:43:39 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-07-11 13:36:42 -0700 |
commit | 5b7026676952fffe82ece362f21d190f8aac66a0 (patch) | |
tree | 040cf88df64edb774b5ee8193d07293e09cf60c9 /recordmydesktop/src/rmd_cache.c | |
parent | 94e08c4fb86eed1351faedd903e4707a490414c3 (diff) |
*: no more enc_data->[xy]_offset
With no rrect alignment adjustment happening, there's no need for this
fuckery anymore. The theora encoding offsets will always be left at
0, the frame_{width, height} will clip to rrect.{width,height}, and
the yuv buffer dimensions are the only thing 16x16 aligned.
Diffstat (limited to 'recordmydesktop/src/rmd_cache.c')
-rw-r--r-- | recordmydesktop/src/rmd_cache.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c index 2d7d8d5..1353bc2 100644 --- a/recordmydesktop/src/rmd_cache.c +++ b/recordmydesktop/src/rmd_cache.c @@ -132,15 +132,13 @@ int rmdPurgeCache(CacheData *cache_data_t, int sound) { } void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_data_t) { - int width, height, offset_x, offset_y, pid; + int width, height, pid; char pidbuf[8]; //we set the buffer only since there's //no need to initialize the encoder from now. width = ((pdata->brwin.rrect.width + 15) >> 4) << 4; height = ((pdata->brwin.rrect.height + 15) >> 4) << 4; - offset_x = ((width - pdata->brwin.rrect.width) / 2) & ~1; - offset_y = ((height - pdata->brwin.rrect.height) / 2) & ~1; (pdata)->enc_data = enc_data_t; @@ -154,8 +152,6 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat enc_data_t->yuv.uv_width = width / 2; enc_data_t->yuv.uv_height = height / 2; enc_data_t->yuv.uv_stride = width / 2; - enc_data_t->x_offset = offset_x; - enc_data_t->y_offset = offset_y; //now we set the cache files (pdata)->cache_data = cache_data_t; |