From 5b7026676952fffe82ece362f21d190f8aac66a0 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 11 Jul 2020 11:43:39 -0700 Subject: *: 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. --- recordmydesktop/src/rmd_init_encoder.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'recordmydesktop/src/rmd_init_encoder.c') diff --git a/recordmydesktop/src/rmd_init_encoder.c b/recordmydesktop/src/rmd_init_encoder.c index 2b2273e..55e1711 100644 --- a/recordmydesktop/src/rmd_init_encoder.c +++ b/recordmydesktop/src/rmd_init_encoder.c @@ -340,8 +340,6 @@ void rmdInitEncoder(ProgData *pdata, EncData *enc_data_t, int buffer_ready) { enc_data_t->yuv.uv_width = enc_data_t->m_th_inf.width / 2; enc_data_t->yuv.uv_height = enc_data_t->m_th_inf.height / 2; enc_data_t->yuv.uv_stride = enc_data_t->m_th_inf.width / 2; - enc_data_t->x_offset = enc_data_t->m_th_inf.offset_x; - enc_data_t->y_offset = enc_data_t->m_th_inf.offset_y; } theora_info_clear(&enc_data_t->m_th_inf); -- cgit v1.2.3