238ab872ba
On initial connection, scrcpy sent some device metadata: - the device name (to be used as window title) - the initial video size (before any frame or even SPS/PPS) But it is better to provide the initial video size as part as the video stream, so that it can be demuxed and exposed via AVCodecContext to sinks. This avoids to pass an explicit "initial frame size" for the screen, the recorder and the v4l2 sink.
8 lines
491 B
C
8 lines
491 B
C
#define SC_EVENT_NEW_FRAME SDL_USEREVENT
|
|
#define SC_EVENT_DEVICE_DISCONNECTED (SDL_USEREVENT + 1)
|
|
#define SC_EVENT_SERVER_CONNECTION_FAILED (SDL_USEREVENT + 2)
|
|
#define SC_EVENT_SERVER_CONNECTED (SDL_USEREVENT + 3)
|
|
#define SC_EVENT_USB_DEVICE_DISCONNECTED (SDL_USEREVENT + 4)
|
|
#define SC_EVENT_DEMUXER_ERROR (SDL_USEREVENT + 5)
|
|
#define SC_EVENT_RECORDER_ERROR (SDL_USEREVENT + 6)
|
|
#define SC_EVENT_SCREEN_INIT_SIZE (SDL_USEREVENT + 7)
|