File tree Expand file tree Collapse file tree 4 files changed +455
-1
lines changed Expand file tree Collapse file tree 4 files changed +455
-1
lines changed Original file line number Diff line number Diff line change 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+ #ifdef LIBVNCSERVER_HAVE_LIBSWSCALE
65+ struct SwsContext ;
66+ #endif
67+ #endif
68+
6069#ifdef LIBVNCSERVER_HAVE_SASL
6170#include <sasl/sasl.h>
6271#endif /* LIBVNCSERVER_HAVE_SASL */
@@ -294,6 +303,20 @@ typedef struct _rfbClient {
294303 int raw_buffer_size ;
295304 char * raw_buffer ;
296305
306+ #ifdef LIBVNCSERVER_HAVE_LIBAVCODEC
307+ struct AVCodecContext * h264Decoder ;
308+ struct AVFrame * h264Frame ;
309+ struct AVPacket * h264Packet ;
310+ #ifdef LIBVNCSERVER_HAVE_LIBSWSCALE
311+ struct SwsContext * h264SwsContext ;
312+ #endif
313+ uint8_t * h264BgraBuffer ;
314+ size_t h264BgraBufferSize ;
315+ int h264CodecWidth ;
316+ int h264CodecHeight ;
317+ int h264LastFormat ;
318+ #endif
319+
297320#ifdef LIBVNCSERVER_HAVE_LIBZ
298321 z_stream decompStream ;
299322 rfbBool decompStreamInited ;
@@ -886,6 +909,10 @@ rfbBool rfbClientInitialise(rfbClient* client);
886909 */
887910void rfbClientCleanup (rfbClient * client );
888911
912+ #ifdef LIBVNCSERVER_HAVE_LIBAVCODEC
913+ void rfbClientH264ReleaseDecoder (rfbClient * client );
914+ #endif
915+
889916#if (defined __cplusplus )
890917 }
891918#endif
You can’t perform that action at this time.
0 commit comments