24
24
25
25
#include " config.h"
26
26
27
- #ifdef HAVE_OPENCL
28
- std::unique_ptr<OpenCL> opencl;
29
- #endif
30
-
31
27
#ifdef HAVE_PULSE
32
28
#include " pulse.hpp"
33
29
PulseReaderParams pulseParams;
@@ -351,14 +347,6 @@ static void write_loop(FrameWriterParams params)
351
347
params.stride = buffer.stride ;
352
348
frame_writer = std::unique_ptr<FrameWriter> (new FrameWriter (params));
353
349
354
- #ifdef HAVE_OPENCL
355
- if (params.opencl && params.force_yuv )
356
- {
357
- frame_writer->opencl = std::move (opencl);
358
- frame_writer->opencl ->init (params.width , params.height );
359
- }
360
- #endif
361
-
362
350
#ifdef HAVE_PULSE
363
351
if (params.enable_audio )
364
352
{
@@ -590,15 +578,7 @@ Use Ctrl+C to stop.)");
590
578
-o, --output Specify the output where the video is to be recorded.
591
579
592
580
-p, --codec-param Change the codec parameters.
593
- -p <option_name>=<option_value>)" );
594
- #ifdef HAVE_OPENCL
595
- printf (R"(
596
-
597
- -e, --opencl Use the -e[#] or --opencl[=#] in conjunction with -t or --force-yuv option
598
- to use opencl for gpu accelerated conversion of data to yuv. # is one
599
- of the devices listed when running without specifying #.)" );
600
- #endif
601
- printf (R"(
581
+ -p <option_name>=<option_value>
602
582
603
583
-F, --filter Specify the ffmpeg filter string to use. For example,
604
584
-F hwupload,scale_vaapi=format=nv12 is used for VAAPI.
@@ -679,8 +659,6 @@ int main(int argc, char *argv[])
679
659
params.enable_ffmpeg_debug_output = false ;
680
660
params.enable_audio = false ;
681
661
params.force_yuv = false ;
682
- params.opencl = false ;
683
- params.opencl_device = -1 ;
684
662
params.bframes = -1 ;
685
663
686
664
constexpr const char * default_cmdline_output = " interactive" ;
@@ -700,7 +678,6 @@ int main(int argc, char *argv[])
700
678
{ " audio" , optional_argument, NULL , ' a' },
701
679
{ " help" , no_argument, NULL , ' h' },
702
680
{ " force-yuv" , no_argument, NULL , ' t' },
703
- { " opencl" , optional_argument, NULL , ' e' },
704
681
{ " bframes" , required_argument, NULL , ' b' },
705
682
{ " version" , no_argument, NULL , ' v' },
706
683
{ " no-damage" , no_argument, NULL , ' D' },
@@ -710,7 +687,7 @@ int main(int argc, char *argv[])
710
687
int c, i;
711
688
std::string param;
712
689
size_t pos;
713
- while ((c = getopt_long (argc, argv, " o:f:m:x:g:c:p:d:b:la::te::hvDF :" , opts, &i)) != -1 )
690
+ while ((c = getopt_long (argc, argv, " o:f:m:x:g:c:p:d:b:la::thvDF :" , opts, &i)) != -1 )
714
691
{
715
692
switch (c)
716
693
{
@@ -772,11 +749,6 @@ int main(int argc, char *argv[])
772
749
help ();
773
750
break ;
774
751
775
- case ' e' :
776
- params.opencl = true ;
777
- params.opencl_device = optarg ? atoi (optarg ) : -1 ;
778
- break ;
779
-
780
752
case ' p' :
781
753
param = optarg ;
782
754
pos = param.find (" =" );
@@ -881,11 +853,6 @@ int main(int argc, char *argv[])
881
853
882
854
printf (" selected region %d,%d %dx%d\n " , selected_region.x , selected_region.y , selected_region.width , selected_region.height );
883
855
884
- #ifdef HAVE_OPENCL
885
- if (params.opencl && params.force_yuv )
886
- opencl = std::unique_ptr<OpenCL> (new OpenCL (params.opencl_device ));
887
- #endif
888
-
889
856
timespec first_frame;
890
857
first_frame.tv_sec = -1 ;
891
858
0 commit comments