/** * @file ardrone_testing_tool.c * @author nicolas.brulez@parrot.com * @date 2012/09/04 * * Example of AR.Drone Live Video Feed using the AR.Drone SDK 2.0 * This example works for both AR.Drone 1 and 2 * * Show example of pre-decoding processing (record encoded h.264 frames) * and post-decoding processing (display decoded frames) * * Possible args : * -eFileName : Record encoded video to FileName * - If AR.Drone 2.0 is used, and filename ends with ".h264" * it can be read with any standard video player that supports * raw h264 (ffplay, mplayer ...) * - AR.Drone 1 video must be transcoded before use. See iOS * AR.FreeFlight app for an example * NOTE : if -eNAME arg is not present, encoded video will not be recorded * NOTE : This is NOT the equivalent of the official record function for AR.Drone2 ! * * -b : use bottom camera instead of frontal camera * * -c : use alternative video codec * - For AR.Drone 2 -> 720p instead of 360p (both h.264) * - For AR.Drone 1 -> VLIB instead of P264 * * NOTE : Frames will be displayed only if out_picture->format is set to PIX_FMT_RGB565 * * Display examlpe uses GTK2 + Cairo. */ // Generic includes #include #include // ARDrone Tool includes #include #include #include #include #include #include #include // App includes #include