/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/qcom/sm7250/display/libhistogram/ |
D | ringbuffer.cpp | 24 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time() 28 histogram::Ringbuffer::Ringbuffer(size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) in Ringbuffer() 33 std::unique_ptr<histogram::Ringbuffer> histogram::Ringbuffer::create( in create() 34 size_t ringbuffer_size, std::unique_ptr<histogram::TimeKeeper> tk) { in create() 37 return std::unique_ptr<histogram::Ringbuffer>( in create() 38 new histogram::Ringbuffer(ringbuffer_size, std::move(tk))); in create() 41 void histogram::Ringbuffer::update_cumulative(nsecs_t now, uint64_t &count, in update_cumulative() 53 ALOGI("histogram.data[%d]: %u\n", i, ringbuffer.front().histogram.data[i]); in update_cumulative() 54 auto const increment = ringbuffer.front().histogram.data[i] * delta.count(); in update_cumulative() 56 (increment < ringbuffer.front().histogram.data[i]))) { in update_cumulative() [all …]
|
D | histogram_collector.cpp | 45 histogram::HistogramCollector::HistogramCollector() in HistogramCollector() 46 : histogram(histogram::Ringbuffer::create(implementation_defined_max_frame_ringbuffer, in HistogramCollector() 47 std::make_unique<histogram::DefaultTimeKeeper>())) {} in HistogramCollector() 49 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() 92 HWC2::Error histogram::HistogramCollector::collect( in collect() 108 std::tie(num_frames, samples) = histogram->collect_cumulative(); in collect() 110 std::tie(num_frames, samples) = histogram->collect_after(timestamp); in collect() 112 std::tie(num_frames, samples) = histogram->collect_max(max_frames); in collect() [all …]
|
D | color_sampling_tool.cpp | 63 histogram::HistogramCollector histogram; in main() local 64 histogram.start(); in main() 80 histogram.stop(); in main() 95 output_file << histogram.Dump(); in main() 98 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>()), Eq(nullptr)); in TEST_F() 103 EXPECT_THAT(histogram::Ringbuffer::create(10, nullptr), Eq(nullptr)); in TEST_F() 107 auto rb = histogram::Ringbuffer::create(1, std::make_unique<TickingTimeKeeper>()); in TEST_F() [all …]
|
D | histogram_collector.h | 33 namespace histogram { 75 std::unique_ptr<histogram::Ringbuffer> histogram; variable
|
D | ringbuffer.h | 31 namespace histogram { 74 drm_msm_hist histogram; member
|
/hardware/google/graphics/common/libhwc2.1/ |
D | histogram_mediator.cpp | 18 histogram::HistogramMediator::HistogramMediator(ExynosDisplay *display) { in HistogramMediator() 26 uint32_t histogram::HistogramMediator::getFrameCount() { in getFrameCount() 32 histogram::HistogramErrorCode histogram::HistogramMediator::requestHist() { in requestHist() 34 return histogram::HistogramErrorCode::DRM_PLAYING; in requestHist() 43 return histogram::HistogramErrorCode::ENABLE_HIST_ERROR; in requestHist() 47 return histogram::HistogramErrorCode::NONE; in requestHist() 50 histogram::HistogramErrorCode histogram::HistogramMediator::cancelHistRequest() { in cancelHistRequest() 56 return histogram::HistogramErrorCode::DISABLE_HIST_ERROR; in cancelHistRequest() 58 return histogram::HistogramErrorCode::NONE; in cancelHistRequest() 61 void histogram::HistogramMediator::HistogramReceiver::callbackHistogram(char16_t *bin) { in callbackHistogram() [all …]
|
D | pixel-display.h | 32 using RoiRect = histogram::RoiRect; 33 using Weight = histogram::Weight; 34 using HistogramPos = histogram::HistogramPos; 35 using Priority = histogram::Priority; 36 using HistogramErrorCode = histogram::HistogramErrorCode; 87 histogram::HistogramMediator mMediator;
|
D | histogram_mediator.h | 44 namespace histogram {
|
D | pixel-display.cpp | 208 histogram::HistogramMediator::HistogramConfig pendingConfig(roi, weight, pos); in runMediator() 272 if ((weight.weightR + weight.weightG + weight.weightB) != (histogram::WEIGHT_SUM)) { in histogramSample()
|
/hardware/interfaces/graphics/composer/2.3/vts/functional/ |
D | VtsHalGraphicsComposerV2_3TargetTest.cpp | 524 hidl_array<hidl_vec<uint64_t>, 4> histogram; in TEST_P() local 526 frameCount, histogram[0], histogram[1], in TEST_P() 527 histogram[2], histogram[3]); in TEST_P() 535 for (auto i = 0; i < histogram.size(); i++) { in TEST_P() 537 EXPECT_NE(histogram[i].size(), 0); in TEST_P() 539 EXPECT_EQ(histogram[i].size(), 0); in TEST_P()
|
/hardware/qcom/sm8150/display/sdm/libs/hwc2/ |
D | hwc_display_builtin.cpp | 191 histogram.stop(); in Deinit() 203 return HWCDisplay::Dump() + histogram.Dump(); in Dump() 927 histogram.start(); in SetDisplayedContentSamplingEnabledVndService() 931 histogram.stop(); in SetDisplayedContentSamplingEnabledVndService() 950 histogram.start(); in SetDisplayedContentSamplingEnabled() 953 histogram.start(max_frames); in SetDisplayedContentSamplingEnabled() 957 histogram.stop(); in SetDisplayedContentSamplingEnabled() 965 return histogram.getAttributes(format, dataspace, supported_components); in GetDisplayedContentSamplingAttributes() 974 histogram.collect(max_frames, timestamp, samples_size, samples, numFrames); in GetDisplayedContentSample() 1060 histogram.notify_histogram_event(fd, blob_id); in HistogramEvent()
|
D | hwc_display_builtin.h | 180 histogram::HistogramCollector histogram; variable
|
/hardware/qcom/sm7250/display/composer/ |
D | hwc_display_builtin.cpp | 296 *os << histogram.Dump(); in Dump() 1346 histogram.start(); in SetDisplayedContentSamplingEnabledVndService() 1350 histogram.stop(); in SetDisplayedContentSamplingEnabledVndService() 1373 histogram.start(); in SetDisplayedContentSamplingEnabled() 1376 histogram.start(max_frames); in SetDisplayedContentSamplingEnabled() 1380 histogram.stop(); in SetDisplayedContentSamplingEnabled() 1389 return histogram.getAttributes(format, dataspace, supported_components); in GetDisplayedContentSamplingAttributes() 1399 histogram.collect(max_frames, timestamp, samples_size, samples, numFrames); in GetDisplayedContentSample() 1641 histogram.stop(); in Deinit() 1776 histogram.notify_histogram_event(fd, blob_id); in HistogramEvent()
|
D | hwc_display_builtin.h | 273 histogram::HistogramCollector histogram; variable
|
/hardware/interfaces/camera/metadata/3.2/ |
D | types.hal | 1499 * <p>Operating mode for histogram 1544 /** android.statistics.histogram [dynamic, int32[], system] 1546 * <p>A 3-channel histogram based on the raw 1622 * <p>Number of histogram buckets 1636 * <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
|
/hardware/interfaces/graphics/composer/aidl/vts/ |
D | VtsHalGraphicsComposer3_TargetTest.cpp | 418 const std::vector<std::vector<int64_t>> histogram = { in TEST_P() local 422 for (size_t i = 0; i < histogram.size(); i++) { in TEST_P() 425 EXPECT_EQ(shouldHaveHistogram, !histogram[i].empty()); in TEST_P()
|