remove dead code

This commit is contained in:
Isaac Connor 2021-04-20 12:59:41 -04:00
parent 9249c736d5
commit 813730f8b5
1 changed files with 4 additions and 4 deletions

View File

@ -144,6 +144,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette)
{ {
Fatal("Can't find swscale format for palette %d", palette); Fatal("Can't find swscale format for palette %d", palette);
break; break;
#if 0
// These are all spare and may match some of the above // These are all spare and may match some of the above
pixFormat = AV_PIX_FMT_YUVJ420P; pixFormat = AV_PIX_FMT_YUVJ420P;
pixFormat = AV_PIX_FMT_YUVJ422P; pixFormat = AV_PIX_FMT_YUVJ422P;
@ -169,6 +170,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette)
//pixFormat = AV_PIX_FMT_VDPAU_H264; //pixFormat = AV_PIX_FMT_VDPAU_H264;
//pixFormat = AV_PIX_FMT_VDPAU_MPEG1; //pixFormat = AV_PIX_FMT_VDPAU_MPEG1;
//pixFormat = AV_PIX_FMT_VDPAU_MPEG2; //pixFormat = AV_PIX_FMT_VDPAU_MPEG2;
#endif
} }
} // end switch palette } // end switch palette
} // end if v4l2 } // end if v4l2
@ -211,6 +213,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette)
{ {
Fatal("Can't find swscale format for palette %d", palette); Fatal("Can't find swscale format for palette %d", palette);
break; break;
#if 0
// These are all spare and may match some of the above // These are all spare and may match some of the above
pixFormat = AV_PIX_FMT_YUVJ420P; pixFormat = AV_PIX_FMT_YUVJ420P;
pixFormat = AV_PIX_FMT_YUVJ422P; pixFormat = AV_PIX_FMT_YUVJ422P;
@ -237,6 +240,7 @@ static _AVPIXELFORMAT getFfPixFormatFromV4lPalette(int v4l_version, int palette)
//pixFormat = AV_PIX_FMT_VDPAU_H264; //pixFormat = AV_PIX_FMT_VDPAU_H264;
//pixFormat = AV_PIX_FMT_VDPAU_MPEG1; //pixFormat = AV_PIX_FMT_VDPAU_MPEG1;
//pixFormat = AV_PIX_FMT_VDPAU_MPEG2; //pixFormat = AV_PIX_FMT_VDPAU_MPEG2;
#endif
} }
} // end switch palette } // end switch palette
} // end if v4l1 } // end if v4l1
@ -2251,9 +2255,5 @@ int LocalCamera::Capture(ZMPacket &zm_packet) {
int LocalCamera::PostCapture() { int LocalCamera::PostCapture() {
return 1; return 1;
Debug(4, "Post-capturing");
return 0;
} }
#endif // ZM_HAS_V4L #endif // ZM_HAS_V4L