Skip to content

Commit

Permalink
More accurate selection of color space conversion element for GStream…
Browse files Browse the repository at this point in the history
…er 1.x
  • Loading branch information
asmorkalov committed Sep 23, 2014
1 parent aa57634 commit 0518455
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/videoio/src/cap_gstreamer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@
#define CV_WARN(message) fprintf(stderr, "warning: %s (%s:%d)\n", message, __FILE__, __LINE__)
#endif

#if GST_VERSION_MAJOR > 0
#define COLOR_ELEM "autovideoconvert"
#else
#if GST_VERSION_MAJOR == 0
#define COLOR_ELEM "ffmpegcolorspace"
#elif FULL_GST_VERSION < VERSION_NUM(1,5,0)
#define COLOR_ELEM "videoconvert"
#else
#define COLOR_ELEM "autovideoconvert"
#endif


void toFraction(double decimal, double &numerator, double &denominator);
void handleMessage(GstElement * pipeline);

Expand Down

0 comments on commit 0518455

Please sign in to comment.