diff options
Diffstat (limited to 'stream/tvi_def.h')
-rw-r--r-- | stream/tvi_def.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/stream/tvi_def.h b/stream/tvi_def.h index 367f2adb35..959237aa04 100644 --- a/stream/tvi_def.h +++ b/stream/tvi_def.h @@ -21,7 +21,7 @@ #include <stdlib.h> /* malloc */ #include <string.h> /* memset */ -#include "video/img_format.h" +#include "video/img_fourcc.h" #include "tv.h" static int init(priv_t *priv); @@ -54,17 +54,17 @@ static inline void fill_blank_frame(char* buffer,int len,int fmt){ // RGB(0,0,255) <-> YVU(41,110,240) switch(fmt){ - case IMGFMT_YV12: + case MP_FOURCC_YV12: memset(buffer, 41,4*len/6); //Y memset(buffer+4*len/6, 110,len/6);//V memset(buffer+5*len/6, 240,len/6);//U break; - case IMGFMT_I420: + case MP_FOURCC_I420: memset(buffer, 41,4*len/6); //Y memset(buffer+4*len/6, 240,len/6);//U memset(buffer+5*len/6, 110,len/6);//V break; - case IMGFMT_UYVY: + case MP_FOURCC_UYVY: for(i=0;i<len;i+=4){ buffer[i]=0xFF; buffer[i+1]=0; @@ -72,7 +72,7 @@ static inline void fill_blank_frame(char* buffer,int len,int fmt){ buffer[i+3]=0; } break; - case IMGFMT_YUY2: + case MP_FOURCC_YUY2: for(i=0;i<len;i+=4){ buffer[i]=0; buffer[i+1]=0xFF; @@ -80,7 +80,7 @@ static inline void fill_blank_frame(char* buffer,int len,int fmt){ buffer[i+3]=0; } break; - case IMGFMT_MJPEG: + case MP_FOURCC_MJPEG: /* This is compressed format. I don't know yet how to fill such frame with blue color. Keeping frame unchanged. |