/hardware/qcom/sdm845/display/libhistogram/ |
D | ringbuffer.cpp | 21 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 …]
|
D | color_sampling_tool.cpp | 58 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()
|
D | histogram_collector.cpp | 281 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 …]
|
D | ringbuffer_test.cpp | 36 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 …]
|
D | histogram_collector.h | 30 namespace histogram { 64 std::unique_ptr<histogram::Ringbuffer> histogram; variable
|
D | ringbuffer.h | 31 namespace histogram { 73 drm_msm_hist histogram; member
|
/hardware/qcom/sm8150/display/libhistogram/ |
D | ringbuffer.cpp | 21 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 …]
|
D | histogram_collector.cpp | 45 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 …]
|
D | color_sampling_tool.cpp | 58 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()
|
D | ringbuffer_test.cpp | 36 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 …]
|
D | histogram_collector.h | 33 namespace histogram { 78 std::unique_ptr<histogram::Ringbuffer> histogram; variable
|
D | ringbuffer.h | 31 namespace histogram { 73 drm_msm_hist histogram; member
|
/hardware/interfaces/graphics/composer/2.3/vts/functional/ |
D | VtsHalGraphicsComposerV2_3TargetTest.cpp | 537 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/ |
D | hwc_display_primary.cpp | 170 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()
|
D | hwc_display_primary.h | 149 histogram::HistogramCollector histogram; variable
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_display_builtin.cpp | 136 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()
|
D | hwc_display_builtin.h | 160 histogram::HistogramCollector histogram; variable
|
/hardware/interfaces/camera/metadata/3.2/ |
D | types.hal | 1497 * <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/ |
D | IComposerClient.hal | 350 * @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
|