![]() |
MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
|
A simple video receiver example. More...
#include <cairo.h>
#include <cairo/cairo.h>
#include <gflags/gflags.h>
#include <gtk/gtk.h>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include "example.h"
#include "example_helpers.h"
#include "mediax_version.h"
#include "renderer/display_manager_sdl.h"
#include "rtp/rtp.h"
#include "sap/sap_listener.h"
#include "stdint.h"
Macros | |
#define | CALLBACK 1 |
Functions | |
DEFINE_string (ipaddr, kIpAddressDefault, "the IP address of the transmit stream") | |
DEFINE_uint32 (port, kPortDefault, "the port to use for the transmit stream") | |
DEFINE_uint32 (height, kHeightDefault, "the height of the image") | |
DEFINE_uint32 (width, kWidthDefault, "the width of the image") | |
DEFINE_uint32 (framerate, 25, "the frames per second") | |
DEFINE_string (session_name, kSessionName, "the SAP/SDP session name") | |
DEFINE_bool (verbose, false, "For verbose output") | |
DEFINE_bool (wait_sap, false, "wait for SAP/SDP announcement") | |
DEFINE_bool (uncompressed, true, "Uncompressed video stream") | |
DEFINE_uint32 (mode, 1, "The video mode (0-4)\n\t" "0 - Uncompressed RGB\n\t" "1 - Uncompressed YUV\n\t" "2 - Mono16\n\t" "3 - Mono8\n\t") | |
DEFINE_uint32 (num_frames, 0, "The number of frames to send") | |
int | main (int argc, char *argv[]) |
The main entry point. | |
Variables | |
std::shared_ptr< mediax::sap::SapListener > | sap_listener_ |
uint32_t | frame_counter_ = 0 |
uint32_t | count_ = 1 |
uint32_t | dropped_ = 0 |
int32_t | timeout_ = 0 |
A simple video receiver example.
int main | ( | int | argc, |
char * | argv[] | ||
) |
The main entry point.
argc | the argument count |
argv | the argument values |