#ifndef REMOTING_BASE_UTIL_H_
#define REMOTING_BASE_UTIL_H_
#include <stddef.h>
#include <stdint.h>
#include <string>
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace remoting {
std::string GetTimestampString();
int RoundToTwosMultiple(int x);
webrtc::DesktopRect AlignRect(const webrtc::DesktopRect& rect);
webrtc::DesktopRect GetRowAlignedRect(const webrtc::DesktopRect rect,
int max_right);
void CopyRGB32Rect(const uint8_t* source_buffer,
int source_stride,
const webrtc::DesktopRect& source_buffer_rect,
uint8_t* dest_buffer,
int dest_stride,
const webrtc::DesktopRect& dest_buffer_rect,
const webrtc::DesktopRect& dest_rect);
std::string ReplaceLfByCrLf(const std::string& in);
std::string ReplaceCrLfByLf(const std::string& in);
bool DoesRectContain(const webrtc::DesktopRect& a,
const webrtc::DesktopRect& b);
}
#endif