From 14cc57071c32149548268e90cf61145a7df0aa01 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 18 Jan 2021 13:55:44 +1100 Subject: [PATCH] [host] remove the remainder of the YUV420 support --- common/include/common/KVMFR.h | 3 +-- common/src/KVMFR.c | 3 +-- host/include/interface/capture.h | 1 - host/src/app.c | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/common/include/common/KVMFR.h b/common/include/common/KVMFR.h index 765480ef..00401a39 100644 --- a/common/include/common/KVMFR.h +++ b/common/include/common/KVMFR.h @@ -33,7 +33,6 @@ typedef enum FrameType FRAME_TYPE_RGBA , // RGBA interleaved: R,G,B,A 32bpp FRAME_TYPE_RGBA10 , // RGBA interleaved: R,G,B,A 10,10,10,2 bpp FRAME_TYPE_RGBA16F , // RGBA interleaved: R,G,B,A 16,16,16,16 bpp float - FRAME_TYPE_YUV420 , // YUV420 FRAME_TYPE_MAX , // sentinel value } FrameType; @@ -66,7 +65,7 @@ typedef enum CursorType CursorType; #define KVMFR_MAGIC "KVMFR---" -#define KVMFR_VERSION 7 +#define KVMFR_VERSION 8 typedef struct KVMFR { diff --git a/common/src/KVMFR.c b/common/src/KVMFR.c index 988740c3..c97f1d5e 100644 --- a/common/src/KVMFR.c +++ b/common/src/KVMFR.c @@ -25,6 +25,5 @@ const char * FrameTypeStr[FRAME_TYPE_MAX] = "FRAME_TYPE_BGRA", "FRAME_TYPE_RGBA", "FRAME_TYPE_RGBA10", - "FRAME_TYPE_RGBA16F", - "FRAME_TYPE_YUV420" + "FRAME_TYPE_RGBA16F" }; diff --git a/host/include/interface/capture.h b/host/include/interface/capture.h index c6c1294f..c207dde9 100644 --- a/host/include/interface/capture.h +++ b/host/include/interface/capture.h @@ -39,7 +39,6 @@ typedef enum CaptureFormat CAPTURE_FMT_RGBA , CAPTURE_FMT_RGBA10 , CAPTURE_FMT_RGBA16F, - CAPTURE_FMT_YUV420 , // pointer formats CAPTURE_FMT_COLOR , diff --git a/host/src/app.c b/host/src/app.c index 74634c48..f059aea0 100644 --- a/host/src/app.c +++ b/host/src/app.c @@ -180,7 +180,6 @@ static int frameThread(void * opaque) case CAPTURE_FMT_RGBA : fi->type = FRAME_TYPE_RGBA ; break; case CAPTURE_FMT_RGBA10 : fi->type = FRAME_TYPE_RGBA10 ; break; case CAPTURE_FMT_RGBA16F: fi->type = FRAME_TYPE_RGBA16F; break; - case CAPTURE_FMT_YUV420 : fi->type = FRAME_TYPE_YUV420 ; break; default: DEBUG_ERROR("Unsupported frame format %d, skipping frame", frame.format); continue;