blob: cf3c7e375ea9471d74af1a8ac6e1355828118abd [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SCREEN_CAPTURE_UTILS_KMSVNC_UTILS_H_
#define SCREEN_CAPTURE_UTILS_KMSVNC_UTILS_H_
#include <cstdint>
#include <memory>
#include "screen-capture-utils/capture.h"
namespace screenshot {
constexpr int kBytesPerPixel = 4;
uint32_t getVncWidth(uint32_t crtc_width);
void ConvertBuffer(const DisplayBuffer::Result& from,
char* to,
uint32_t vnc_width);
} // namespace screenshot
#endif // SCREEN_CAPTURE_UTILS_KMSVNC_UTILS_H_