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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "gpu/buffer.hpp"
#include "gpu/stream.hpp"
#include "gpu/vectorTypes.hpp"
#include "libvideostitch/inputDef.hpp"
#include <stdint.h>
namespace VideoStitch {
namespace Core {
class TransformGeoParams;
/**
* Mask everything except a vertical strip in warped image space.
* @param dst Destination
* @param dstWidth Destination width
* @param dstHeight Destination height
* @param geoParams The parameters defining the warp to spherical space
* @param stream CUDA stream where to run the kernels.
* @note This call is asynchronous.
*/
Status vStrip(GPU::Buffer<unsigned char> dst, std::size_t dstWidth, std::size_t dstHeight, float min, float max,
InputDefinition::Format fmt, float distCenterX, float distCenterY, const TransformGeoParams& geoParams,
const float2& inputScale, GPU::Stream stream);
/**
* Mask everything except a horizontal strip in warped image space.
* @param dst Destination
* @param dstWidth Destination width
* @param dstHeight Destination height
* @param geoParams The parameters defining the warp to spherical space
* @param stream CUDA stream where to run the kernels.
* @note This call is asynchronous.
*/
Status hStrip(GPU::Buffer<unsigned char> dst, std::size_t dstWidth, std::size_t dstHeight, float min, float max,
InputDefinition::Format fmt, float distCenterX, float distCenterY, const TransformGeoParams& geoParams,
const float2& inputScale, GPU::Stream stream);
} // namespace Core
} // namespace VideoStitch