1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15:
| function ConvertCodecToRGB(Codec: TVideoCodec; Src, Dst: Pointer; AWidth, AHeight: Integer): Boolean; begin Result := True; case Codec of vcYUY2 : YUY2toRGB (Src, Dst, AWidth, AHeight); vcUYVY : UYVYtoRGB (Src, Dst, AWidth, AHeight); vcBTYUV : BTYUVtoRGB(Src, Dst, AWidth, AHeight); vcYVU9 : YVU9toRGB(Src, Dst, AWidth, AHeight); vcYUV12 : YUV12toRGB(Src, Dst, AWidth, AHeight); vcY8 : Y8toRGB (Src, Dst, AWidth, AHeight); vcY211 : Y211toRGB(Src, Dst, AWidth, AHeight); else Result := False; end; end; |