Strip trailing spaces here and there
authorAntonio Ospite <ao2@ao2.it>
Tue, 17 Nov 2015 14:46:15 +0000 (15:46 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 17 Nov 2015 14:46:15 +0000 (15:46 +0100)
contrib/am7xxx-play-window.sh
examples/CMakeLists.txt
src/am7xxx.h
src/portable_endian.h

index 2978ef2..dd8703d 100755 (executable)
 set -e
 
 DISPLAY=":0"
+
 WIN_INFO="$(xwininfo)"
+
 X=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Absolute upper-left X:[[:space:]]*/s///p")
 Y=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Absolute upper-left Y:[[:space:]]*/s///p")
 WIDTH=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Width:[[:space:]]*/s///p")
 HEIGHT=$(echo "$WIN_INFO" | sed -n -e "/^[[:space:]]*Height:[[:space:]]*/s///p")
+
 set -x
 am7xxx-play -f x11grab -i "${DISPLAY}+${X},${Y}" -o video_size="${WIDTH}x${HEIGHT}"
index e4da954..c563f5f 100644 (file)
@@ -18,8 +18,8 @@ endif()
 option(BUILD_AM7XXX-PLAY "Build a more complete example: am7xxx-play" TRUE)
 if(BUILD_AM7XXX-PLAY)
   find_package(FFmpeg REQUIRED)
-  set(CMAKE_REQUIRED_LIBRARIES ${FFMPEG_LIBRARIES}) 
-  set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}) 
+  set(CMAKE_REQUIRED_LIBRARIES ${FFMPEG_LIBRARIES})
+  set(CMAKE_REQUIRED_INCLUDES ${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS})
   check_symbol_exists(avformat_open_input
     "${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}/libavformat/avformat.h"
     HAVE_AVFORMAT_OPEN_INPUT)
index 4a97f69..d103c22 100644 (file)
@@ -252,7 +252,7 @@ int am7xxx_send_image(am7xxx_device *dev,
  * This is the function that actually makes the device display something.
  * Static pictures can be sent just once and the device will keep showing them
  * until another image get sent or some command resets or turns off the display.
- * 
+ *
  * @note This _async() variant makes a copy of the image buffer, so the caller
  * is free to reuse the buffer just after the function returns.
  *
index 1741f18..6bc9a73 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Public domain, stripped down version of:
  * https://gist.github.com/panzi/6856583
  */