Home
last modified time | relevance | path

Searched refs:histogram (Results 1 – 19 of 19) sorted by relevance

/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer.cpp21 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time()
25 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk… in Ringbuffer()
32 std::unique_ptr<histogram::Ringbuffer> histogram::Ringbuffer::create( in create()
33 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create()
36 …return std::unique_ptr<histogram::Ringbuffer>(new histogram::Ringbuffer(ringbuffer_size, std::move… in create()
39 void histogram::Ringbuffer::update_cumulative(nsecs_t now, in update_cumulative()
51 auto const increment = ringbuffer.front().histogram.data[i] * delta.count(); in update_cumulative()
52 …_UNLIKELY((bins[i] + increment < bins[i]) || (increment < ringbuffer.front().histogram.data[i]))) { in update_cumulative()
60 void histogram::Ringbuffer::insert(drm_msm_hist const& frame) { in insert()
72 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize()
[all …]
Dcolor_sampling_tool.cpp58 histogram::HistogramCollector histogram; in main() local
59 histogram.start(); in main()
75 histogram.stop(); in main()
90 output_file << histogram.Dump(); in main()
93 std::cout << histogram.Dump() << '\n'; in main()
Dhistogram_collector.cpp281 histogram::HistogramCollector::HistogramCollector() : in HistogramCollector()
282 histogram(histogram::Ringbuffer::create( in HistogramCollector()
283 … implementation_defined_max_frame_ringbuffer, std::make_unique<histogram::DefaultTimeKeeper>())) { in HistogramCollector()
286 histogram::HistogramCollector::~HistogramCollector() { in ~HistogramCollector()
305 std::string histogram::HistogramCollector::Dump() const { in Dump()
308 std::tie(num_frames, all_sample_buckets) = histogram->collect_cumulative(); in Dump()
329 HWC2::Error histogram::HistogramCollector::collect( in collect()
348 std::tie(num_frames, samples) = histogram->collect_cumulative(); in collect()
350 std::tie(num_frames, samples) = histogram->collect_after(timestamp); in collect()
352 std::tie(num_frames, samples) = histogram->collect_max(max_frames); in collect()
[all …]
Dringbuffer_test.cpp36 struct TimeKeeperWrapper : histogram::TimeKeeper {
37 TimeKeeperWrapper(std::shared_ptr<histogram::TimeKeeper> const &tk) : tk(tk) {} in TimeKeeperWrapper()
39 std::shared_ptr<histogram::TimeKeeper> const tk;
42 struct TickingTimeKeeper : histogram::TimeKeeper {
53 void insertFrameIncrementTimeline(histogram::Ringbuffer &rb, TickingTimeKeeper &tk, in insertFrameIncrementTimeline()
72 std::unique_ptr<histogram::Ringbuffer> createFilledRingbuffer( in createFilledRingbuffer()
74 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in createFilledRingbuffer()
99 EXPECT_THAT(histogram::Ringbuffer::create(0, std::make_unique<TickingTimeKeeper>()), in TEST_F()
104 EXPECT_THAT(histogram::Ringbuffer::create(10, nullptr), Eq(nullptr)); in TEST_F()
108 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F()
[all …]
Dhistogram_collector.h30 namespace histogram {
64 std::unique_ptr<histogram::Ringbuffer> histogram; variable
Dringbuffer.h31 namespace histogram {
73 drm_msm_hist histogram; member
/hardware/qcom/sm8150/display/libhistogram/
Dringbuffer.cpp21 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time()
25 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk… in Ringbuffer()
32 std::unique_ptr<histogram::Ringbuffer> histogram::Ringbuffer::create( in create()
33 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create()
36 …return std::unique_ptr<histogram::Ringbuffer>(new histogram::Ringbuffer(ringbuffer_size, std::move… in create()
39 void histogram::Ringbuffer::update_cumulative(nsecs_t now, in update_cumulative()
51 auto const increment = ringbuffer.front().histogram.data[i] * delta.count(); in update_cumulative()
52 …_UNLIKELY((bins[i] + increment < bins[i]) || (increment < ringbuffer.front().histogram.data[i]))) { in update_cumulative()
60 void histogram::Ringbuffer::insert(drm_msm_hist const& frame) { in insert()
72 bool histogram::Ringbuffer::resize(size_t ringbuffer_size) { in resize()
[all …]
Dhistogram_collector.cpp45 histogram::HistogramCollector::HistogramCollector() : in HistogramCollector()
46 histogram(histogram::Ringbuffer::create( in HistogramCollector()
47 … implementation_defined_max_frame_ringbuffer, std::make_unique<histogram::DefaultTimeKeeper>())) { in HistogramCollector()
50 histogram::HistogramCollector::~HistogramCollector() { in ~HistogramCollector()
69 std::string histogram::HistogramCollector::Dump() const { in Dump()
72 std::tie(num_frames, all_sample_buckets) = histogram->collect_cumulative(); in Dump()
93 HWC2::Error histogram::HistogramCollector::collect( in collect()
112 std::tie(num_frames, samples) = histogram->collect_cumulative(); in collect()
114 std::tie(num_frames, samples) = histogram->collect_after(timestamp); in collect()
116 std::tie(num_frames, samples) = histogram->collect_max(max_frames); in collect()
[all …]
Dcolor_sampling_tool.cpp58 histogram::HistogramCollector histogram; in main() local
59 histogram.start(); in main()
75 histogram.stop(); in main()
90 output_file << histogram.Dump(); in main()
93 std::cout << histogram.Dump() << '\n'; in main()
Dringbuffer_test.cpp36 struct TimeKeeperWrapper : histogram::TimeKeeper {
37 TimeKeeperWrapper(std::shared_ptr<histogram::TimeKeeper> const &tk) : tk(tk) {} in TimeKeeperWrapper()
39 std::shared_ptr<histogram::TimeKeeper> const tk;
42 struct TickingTimeKeeper : histogram::TimeKeeper {
53 void insertFrameIncrementTimeline(histogram::Ringbuffer &rb, TickingTimeKeeper &tk, in insertFrameIncrementTimeline()
72 std::unique_ptr<histogram::Ringbuffer> createFilledRingbuffer( in createFilledRingbuffer()
74 auto rb = histogram::Ringbuffer::create(4, std::make_unique<TimeKeeperWrapper>(tk)); in createFilledRingbuffer()
99 EXPECT_THAT(histogram::Ringbuffer::create(0, std::make_unique<TickingTimeKeeper>()), in TEST_F()
104 EXPECT_THAT(histogram::Ringbuffer::create(10, nullptr), Eq(nullptr)); in TEST_F()
108 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F()
[all …]
Dhistogram_collector.h33 namespace histogram {
78 std::unique_ptr<histogram::Ringbuffer> histogram; variable
Dringbuffer.h31 namespace histogram {
73 drm_msm_hist histogram; member
/hardware/interfaces/graphics/composer/2.3/vts/functional/
DVtsHalGraphicsComposerV2_3TargetTest.cpp537 hidl_array<hidl_vec<uint64_t>, 4> histogram; in TEST_F() local
539 frameCount, histogram[0], histogram[1], in TEST_F()
540 histogram[2], histogram[3]); in TEST_F()
548 for (auto i = 0; i < histogram.size(); i++) { in TEST_F()
550 EXPECT_NE(histogram[i].size(), 0); in TEST_F()
552 EXPECT_EQ(histogram[i].size(), 0); in TEST_F()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_display_primary.cpp170 histogram.stop(); in Deinit()
183 return HWCDisplay::Dump() + histogram.Dump(); in Dump()
839 histogram.start(); in SetDisplayedContentSamplingEnabledVndService()
841 histogram.stop(); in SetDisplayedContentSamplingEnabledVndService()
860 histogram.start(); in SetDisplayedContentSamplingEnabled()
862 histogram.start(max_frames); in SetDisplayedContentSamplingEnabled()
864 histogram.stop(); in SetDisplayedContentSamplingEnabled()
872 return histogram.getAttributes(format, dataspace, supported_components); in GetDisplayedContentSamplingAttributes()
881 histogram.collect(max_frames, timestamp, samples_size, samples, numFrames); in GetDisplayedContentSample()
Dhwc_display_primary.h149 histogram::HistogramCollector histogram; variable
/hardware/qcom/sm8150/display/sdm/libs/hwc2/
Dhwc_display_builtin.cpp136 histogram.stop(); in Deinit()
141 return HWCDisplay::Dump() + histogram.Dump(); in Dump()
841 histogram.start(); in SetDisplayedContentSamplingEnabledVndService()
845 histogram.stop(); in SetDisplayedContentSamplingEnabledVndService()
864 histogram.start(); in SetDisplayedContentSamplingEnabled()
867 histogram.start(max_frames); in SetDisplayedContentSamplingEnabled()
871 histogram.stop(); in SetDisplayedContentSamplingEnabled()
879 return histogram.getAttributes(format, dataspace, supported_components); in GetDisplayedContentSamplingAttributes()
888 histogram.collect(max_frames, timestamp, samples_size, samples, numFrames); in GetDisplayedContentSample()
956 histogram.notify_histogram_event(fd, blob_id); in HistogramEvent()
Dhwc_display_builtin.h160 histogram::HistogramCollector histogram; variable
/hardware/interfaces/camera/metadata/3.2/
Dtypes.hal1497 * <p>Operating mode for histogram
1542 /** android.statistics.histogram [dynamic, int32[], system]
1544 * <p>A 3-channel histogram based on the raw
1620 * <p>Number of histogram buckets
1634 * <p>Maximum value possible for a histogram
/hardware/interfaces/graphics/composer/2.3/
DIComposerClient.hal350 * @return sampleComponent0 is a histogram counting how many times a pixel of a given value
352 * The buckets of the histogram are evenly weighted, the number of buckets