summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_get_frame.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-07-11 11:43:39 -0700
committerVito Caputo <vcaputo@pengaru.com>2020-07-11 13:36:42 -0700
commit5b7026676952fffe82ece362f21d190f8aac66a0 (patch)
tree040cf88df64edb774b5ee8193d07293e09cf60c9 /recordmydesktop/src/rmd_get_frame.c
parent94e08c4fb86eed1351faedd903e4707a490414c3 (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_get_frame.c')
-rw-r--r--recordmydesktop/src/rmd_get_frame.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/recordmydesktop/src/rmd_get_frame.c b/recordmydesktop/src/rmd_get_frame.c
index 162b2f5..a9e4daa 100644
--- a/recordmydesktop/src/rmd_get_frame.c
+++ b/recordmydesktop/src/rmd_get_frame.c
@@ -172,8 +172,8 @@ static int rmdFirstFrame(ProgData *pdata, Image *image) {
rmdUpdateYuvBuffer( &pdata->enc_data->yuv,
(unsigned char *)image->ximage->data,
NULL,
- pdata->enc_data->x_offset,
- pdata->enc_data->y_offset,
+ 0,
+ 0,
rrect->width,
rrect->height,
pdata->args.no_quick_subsample,
@@ -411,8 +411,8 @@ void *rmdGetFrame(ProgData *pdata) {
mark_buffer_area(
back_buff,
- mouse_pos_temp.x - temp_brwin.rrect.x + pdata->enc_data->x_offset,
- mouse_pos_temp.y - temp_brwin.rrect.y + pdata->enc_data->y_offset,
+ mouse_pos_temp.x - temp_brwin.rrect.x,
+ mouse_pos_temp.y - temp_brwin.rrect.y,
mouse_pos_temp.width, mouse_pos_temp.height, temp_brwin.rrect.width,
pdata->specs.depth
);
@@ -483,8 +483,8 @@ void *rmdGetFrame(ProgData *pdata) {
rmdUpdateYuvBuffer( &pdata->enc_data->yuv,
front_buff,
back_buff,
- pdata->enc_data->x_offset,
- pdata->enc_data->y_offset,
+ 0,
+ 0,
temp_brwin.rrect.width,
temp_brwin.rrect.height,
pdata->args.no_quick_subsample,
@@ -517,8 +517,8 @@ void *rmdGetFrame(ProgData *pdata) {
rmdXFixesPointerToYuv(
&pdata->enc_data->yuv,
((unsigned char*)xcim->pixels),
- mouse_pos_temp.x - temp_brwin.rrect.x + pdata->enc_data->x_offset,
- mouse_pos_temp.y - temp_brwin.rrect.y + pdata->enc_data->y_offset,
+ mouse_pos_temp.x - temp_brwin.rrect.x,
+ mouse_pos_temp.y - temp_brwin.rrect.y,
mouse_pos_temp.width,
mouse_pos_temp.height,
mouse_xoffset,
@@ -529,8 +529,8 @@ void *rmdGetFrame(ProgData *pdata) {
rmdDummyPointerToYuv(
&pdata->enc_data->yuv,
pdata->dummy_pointer,
- mouse_pos_temp.x - temp_brwin.rrect.x + pdata->enc_data->x_offset,
- mouse_pos_temp.y - temp_brwin.rrect.y + pdata->enc_data->y_offset,
+ mouse_pos_temp.x - temp_brwin.rrect.x,
+ mouse_pos_temp.y - temp_brwin.rrect.y,
mouse_pos_temp.width,
mouse_pos_temp.height,
mouse_xoffset,
@@ -550,8 +550,8 @@ void *rmdGetFrame(ProgData *pdata) {
mark_buffer_area(
front_buff,
- mouse_pos_temp.x - temp_brwin.rrect.x + pdata->enc_data->x_offset,
- mouse_pos_temp.y - temp_brwin.rrect.y + pdata->enc_data->y_offset,
+ mouse_pos_temp.x - temp_brwin.rrect.x,
+ mouse_pos_temp.y - temp_brwin.rrect.y,
mouse_pos_temp.width,
mouse_pos_temp.height,
temp_brwin.rrect.width,
© All Rights Reserved