Skip to content

Commit 6b7e093

Browse files
committed
libvncclient: add h264 support
1 parent 389c708 commit 6b7e093

File tree

4 files changed

+815
-1
lines changed

4 files changed

+815
-1
lines changed

include/rfb/rfbclient.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
#include <rfb/keysym.h>
5858
#include <rfb/threading.h>
5959

60+
#ifdef LIBVNCSERVER_HAVE_LIBAVCODEC
61+
struct AVCodecContext;
62+
struct AVFrame;
63+
struct AVPacket;
64+
struct rfbClientH264Context;
65+
#ifdef LIBVNCSERVER_HAVE_LIBSWSCALE
66+
struct SwsContext;
67+
#endif
68+
#endif
69+
6070
#ifdef LIBVNCSERVER_HAVE_SASL
6171
#include <sasl/sasl.h>
6272
#endif /* LIBVNCSERVER_HAVE_SASL */
@@ -294,6 +304,12 @@ typedef struct _rfbClient {
294304
int raw_buffer_size;
295305
char *raw_buffer;
296306

307+
#ifdef LIBVNCSERVER_HAVE_LIBAVCODEC
308+
struct rfbClientH264Context *h264ContextsHead;
309+
struct rfbClientH264Context *h264ContextsTail;
310+
unsigned int h264ContextCount;
311+
#endif
312+
297313
#ifdef LIBVNCSERVER_HAVE_LIBZ
298314
z_stream decompStream;
299315
rfbBool decompStreamInited;
@@ -886,6 +902,10 @@ rfbBool rfbClientInitialise(rfbClient* client);
886902
*/
887903
void rfbClientCleanup(rfbClient* client);
888904

905+
#ifdef LIBVNCSERVER_HAVE_LIBAVCODEC
906+
void rfbClientH264ReleaseDecoder(rfbClient* client);
907+
#endif
908+
889909
#if(defined __cplusplus)
890910
}
891911
#endif

0 commit comments

Comments
 (0)