-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDecoder.cpp
More file actions
51 lines (44 loc) · 1015 Bytes
/
Decoder.cpp
File metadata and controls
51 lines (44 loc) · 1015 Bytes
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
45
46
47
48
49
50
51
#pragma once
#include "pch.h"
#include "Decoder.h"
#include "MasterClass.h"
MasterClass* pClass;
s_dimension* init(uint8_t* data, int length)
{
pClass = new MasterClass();
s_dimension* dims = pClass->init_ffmpeg(data, length);
return dims;
}
sYUVplanes* decode(uint8_t* data, int length)
{
sYUVplanes* pointer = pClass->decode_ffmpeg(data, length);
return pointer;
}
void clear()
{
pClass->clear_ffmpeg();
}
void unref_YUVPlanes_structure(uint8_t* avframe)
{
pClass->unref_YUVPlanes_structure(avframe);
}
int test(int a,int b)
{
return a + b;
}
int check_hardware_device_support(int i) {
return pClass->check_hardware_device_support(i);
}
//
//s_dimension* init_hw_acceleration(uint8_t* data, int length)
//{
// pClass = new MasterClass();
// s_dimension* dims = pClass->init_ffmpeg_hw_acceleration(data, length);
// return dims;
//}
//
//uint8_t* decode_hw_acceleration(uint8_t* data, int length)
//{
// uint8_t* pointer = pClass->decode_ffmpeg_hw_acceleration(data, length);
// return pointer;
//}