Initial community commit

This commit is contained in:
Jef
2024-09-24 14:54:57 +02:00
parent 537bcbc862
commit 20d28e80a5
16810 changed files with 4640254 additions and 2 deletions

25
Src/mp4v/MFTDecoder.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <Mftransform.h>
#include <bfc/platform/types.h>
#include "../Winamp/wa_ipc.h"
#include <Amvideo.h>
class MFTDecoder
{
public:
MFTDecoder();
~MFTDecoder();
HRESULT Open(VIDEOINFOHEADER *header);
HRESULT Feed(const void *data, size_t data_size, uint64_t timestamp_hundred_nanos);
HRESULT GetFrame(IMFMediaBuffer **output_buffer, uint64_t *hundrednanos);
HRESULT GetFrame(YV12_PLANES **data, void **decoder_data, uint64_t *mft_timestamp);
HRESULT FreeFrame(YV12_PLANES *data, void *decoder_data);
HRESULT GetOutputFormat(UINT *width, UINT *height, bool *flip, double *aspect);
HRESULT Flush();
HRESULT Drain();
IMFTransform *decoder;
LONG stride;
UINT32 width, height;
};