diff options
-rw-r--r-- | libxrdp/libxrdp.c | 19 | ||||
-rw-r--r-- | libxrdp/libxrdpinc.h | 7 |
2 files changed, 26 insertions, 0 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index c00f99d7..24443429 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -1290,3 +1290,22 @@ libxrdp_monitored_desktop(struct xrdp_session *session, orders = (struct xrdp_orders *)(session->orders); return xrdp_orders_send_monitored_desktop(orders, mdo, flags); } + +/*****************************************************************************/ +int EXPORT_CC +libxrdp_codec_jpeg_compress(struct xrdp_session *session, + int format, char *inp_data, + int width, int height, + int stride, int x, int y, + int cx, int cy, int quality, + char *out_data, int *io_len) +{ + struct xrdp_orders *orders; + void* jpeg_han; + + orders = (struct xrdp_orders *)(session->orders); + jpeg_han = orders->jpeg_han; + return xrdp_codec_jpeg_compress(jpeg_han, format, inp_data, + width, height, stride, x, y, + cx, cy, quality, out_data, io_len); +} diff --git a/libxrdp/libxrdpinc.h b/libxrdp/libxrdpinc.h index 58ba5093..8e41e7fe 100644 --- a/libxrdp/libxrdpinc.h +++ b/libxrdp/libxrdpinc.h @@ -228,5 +228,12 @@ int DEFAULT_CC libxrdp_monitored_desktop(struct xrdp_session* session, struct rail_monitored_desktop_order* mdo, int flags); +int DEFAULT_CC +libxrdp_codec_jpeg_compress(struct xrdp_session *session, + int format, char *inp_data, + int width, int height, + int stride, int x, int y, + int cx, int cy, int quality, + char *out_data, int *io_len); #endif |