Welcome to mirror list, hosted at ThFree Co, Russian Federation.

frame_image.hpp « software_renderer - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dfe92318687a8d8c42d8ebcd1883a0eaea54e1bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#include "geometry/point2d.hpp"

#include <cstdint>
#include <vector>

namespace software_renderer
{
struct FrameSymbols
{
  m2::PointD m_searchResult;
  bool m_showSearchResult = false;
  int m_bottomZoom = -1;
};

struct FrameImage
{
  // image data.
  // TopLeft-to-RightBottom order
  // Format - png
  std::vector<uint8_t> m_data;
  uint32_t m_width = 0;       // pixel width of image
  uint32_t m_height = 0;      // pixel height of image
  uint32_t m_stride = 0;      // row stride in bytes
};
}  // namespace software_renderer