Transform360/Library/VideoFrameTransformHandler.h (31 lines of code) (raw):

/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ /** * This software contains some transform algorithms to transform * equirectangular panorama video frames to cubemap images */ #pragma once #include "VideoFrameTransformHelper.h" #ifdef __cplusplus extern "C" { #endif typedef struct VideoFrameTransform VideoFrameTransform; extern VideoFrameTransform* VideoFrameTransform_new( FrameTransformContext* ctx); extern void VideoFrameTransform_delete(VideoFrameTransform* transform); extern int VideoFrameTransform_generateMapForPlane( VideoFrameTransform* transform, int inputWidth, int inputHeight, int outputWidth, int outputHeight, int transformMatPlaneIndex); extern int VideoFrameTransform_transformFramePlane( VideoFrameTransform* transform, uint8_t* inputData, uint8_t* outputData, int inputWidth, int inputHeight, int inputWidthWithPadding, int outputWidth, int outputHeight, int outputWidthWithPadding, int transformMatPlaneIndex, int imagePlaneIndex); #ifdef __cplusplus } #endif