Blame view

FFNvDecoder/cuda_kernels.h 583 Bytes
fccbe006   Hu Chunming   初步完成从解码到算法处理,任务管理...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  #pragma once
  #include "cuda_runtime.h"
  #include "device_launch_parameters.h"
  
  #include <stdio.h>
  #include <stdlib.h>
  
  #include <string.h>
  #include <math.h>
  
  #include <cuda.h>
  
  typedef enum
  {
6e2b079e   Hu Chunming   编译通过
15
16
17
  	ITU_601 = 1,
  	ITU_709 = 2
  } FF_ColorSpace;
fccbe006   Hu Chunming   初步完成从解码到算法处理,任务管理...
18
19
20
  
  namespace cuda_common
  {
6e2b079e   Hu Chunming   编译通过
21
  	cudaError_t setColorSpace(FF_ColorSpace CSC, float hue);
fccbe006   Hu Chunming   初步完成从解码到算法处理,任务管理...
22
23
24
25
  
  	cudaError_t NV12ToRGBnot(CUdeviceptr d_srcNV12, size_t nSourcePitch, unsigned char* d_dstRGB, int width, int height);
  	cudaError_t CUDAToBGR(CUdeviceptr dataY, CUdeviceptr dataUV, size_t pitchY, size_t pitchUV, unsigned char* d_dstRGB, int width, int height);
  }