.. _program_listing_file__tmp_ws_src_vitis_common_include_video_xf_dense_npyr_optical_flow_types.h: Program Listing for File xf_dense_npyr_optical_flow_types.h =========================================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/vitis_common/include/video/xf_dense_npyr_optical_flow_types.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* * Copyright 2019 Xilinx, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef __XF_DENSE_NONPYR_OPTICAL_FLOW_TYPES__ #define __XF_DENSE_NONPYR_OPTICAL_FLOW_TYPES__ typedef unsigned char pix_t; template struct mywide_t { pix_t data[BYTES_PER_CYCLE]; }; typedef struct __yuv { pix_t y, u, v; } yuv_t; typedef struct __rgb { pix_t r, g, b; } rgb_t; // kernel returns this type. Packed structs on axi need to be powers-of-2. typedef struct __rgba { pix_t r, g, b; pix_t a; // can be unused } rgba_t; typedef struct __hsv { pix_t h, s, v; } hsv_t; #endif