#ifndef __GEN_FRAME_H__
#define __GEN_FRAME_H__

#include "buffer_filler.h"
#include "convert.h"
#include <d3d11.h>

#include "basic/frame.h"

bool GenNv12Frame(ID3D11Device* device, ID3D11DeviceContext* ctx, const D3D11_TEXTURE2D_DESC& desc,
    ID3D11Texture2D* img, BufferFiller& buffers, AVFrame*& outFrame, D3dConverter& rgbToNv12);
bool GenRgbFrame(ID3D11Device* device, ID3D11DeviceContext* ctx, const D3D11_TEXTURE2D_DESC& desc,
    ID3D11Texture2D* img, BufferFiller& buffers, AVFrame*& outFrame);
#endif
