From 2cf608b44cf366a1c32ed218e49a2788c1d679e1 Mon Sep 17 00:00:00 2001 From: dezhihuang Date: Tue, 17 Oct 2017 16:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=9C=AA=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E6=8F=8F=E8=BF=B0=E7=AC=A6=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BD=E6=95=B0=E5=8A=9F=E8=83=BD=E8=AF=B4?= =?UTF-8?q?=E6=98=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuv420p_gray.cpp | 1 + yuv420p_split.cpp | 2 ++ yuv422p_split.cpp | 2 ++ yuv444p_split.cpp | 2 ++ 4 files changed, 7 insertions(+) diff --git a/yuv420p_gray.cpp b/yuv420p_gray.cpp index a8eeb03..d44f0f6 100644 --- a/yuv420p_gray.cpp +++ b/yuv420p_gray.cpp @@ -6,6 +6,7 @@ typedef int BOOL; #define TRUE 1 #define FALSE 0 +//将YUV420P像素数据去掉颜色(变成灰度图) BOOL yuv420p_gray(const char *file, int width, int height) { if (file == NULL) { diff --git a/yuv420p_split.cpp b/yuv420p_split.cpp index 7533f72..5171a59 100644 --- a/yuv420p_split.cpp +++ b/yuv420p_split.cpp @@ -6,6 +6,7 @@ typedef int BOOL; #define TRUE 1 #define FALSE 0 +//分离YUV420P像素数据中的Y、U、V分量 BOOL yuv420p_split(const char *file, int width, int height) { if (file == NULL) { @@ -30,6 +31,7 @@ BOOL yuv420p_split(const char *file, int width, int height) free(data); fclose(fp); + fclose(fp0); fclose(fp1); fclose(fp2); fclose(fp3); diff --git a/yuv422p_split.cpp b/yuv422p_split.cpp index 11f174d..cc273c5 100644 --- a/yuv422p_split.cpp +++ b/yuv422p_split.cpp @@ -6,6 +6,7 @@ typedef int BOOL; #define TRUE 1 #define FALSE 0 +//分离YUV422P像素数据中的Y、U、V分量(还有问题,图像显示不完整) BOOL yuv422p_split(const char *file, int width, int height) { if (file == NULL) { @@ -30,6 +31,7 @@ BOOL yuv422p_split(const char *file, int width, int height) free(data); fclose(fp); + fclose(fp0); fclose(fp1); fclose(fp2); fclose(fp3); diff --git a/yuv444p_split.cpp b/yuv444p_split.cpp index 4ee0caa..6850dcd 100644 --- a/yuv444p_split.cpp +++ b/yuv444p_split.cpp @@ -6,6 +6,7 @@ typedef int BOOL; #define TRUE 1 #define FALSE 0 +//## 分离YUV444P像素数据中的Y、U、V分量 BOOL yuv444p_split(const char *file, int width, int height) { if (file == NULL) { @@ -30,6 +31,7 @@ BOOL yuv444p_split(const char *file, int width, int height) free(data); fclose(fp); + fclose(fp0); fclose(fp1); fclose(fp2); fclose(fp3);