关闭未关闭的文件描述符,添加函数功能说明。

master
dezhihuang 2017-10-17 16:34:39 +08:00
parent e95c3acd00
commit 2cf608b44c
4 changed files with 7 additions and 0 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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);

View File

@ -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);