Skip to content

Commit

Permalink
ffmpeg: Update AVPixelFormat and AV_PIX_FMT_* to compile with master
Browse files Browse the repository at this point in the history
The deprecated PixelFormat and PIX_FMT_* names have been removed in
ffmpeg master.
  • Loading branch information
philipl authored and FernetMenta committed Nov 16, 2015
1 parent 46d4275 commit 400ce99
Show file tree
Hide file tree
Showing 20 changed files with 87 additions and 105 deletions.
18 changes: 0 additions & 18 deletions xbmc/cores/FFmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "utils/CPUInfo.h"

extern "C" {
#include "libswscale/swscale.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/avutil.h"
Expand All @@ -33,23 +32,6 @@ extern "C" {
#include "libpostproc/postprocess.h"
}

inline int SwScaleCPUFlags()
{
unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
int flags = 0;

if (cpuFeatures & CPU_FEATURE_MMX)
flags |= SWS_CPU_CAPS_MMX;
if (cpuFeatures & CPU_FEATURE_MMX2)
flags |= SWS_CPU_CAPS_MMX2;
if (cpuFeatures & CPU_FEATURE_3DNOW)
flags |= SWS_CPU_CAPS_3DNOW;
if (cpuFeatures & CPU_FEATURE_ALTIVEC)
flags |= SWS_CPU_CAPS_ALTIVEC;

return flags;
}

inline int PPCPUFlags()
{
unsigned int cpuFeatures = g_cpuInfo.GetCPUFeatures();
Expand Down
36 changes: 18 additions & 18 deletions xbmc/cores/VideoPlayer/DVDCodecs/DVDCodecUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern "C" {
#include "libswscale/swscale.h"
}

// allocate a new picture (PIX_FMT_YUV420P)
// allocate a new picture (AV_PIX_FMT_YUV420P)
DVDVideoPicture* CDVDCodecUtils::AllocatePicture(int iWidth, int iHeight)
{
DVDVideoPicture* pPicture = new DVDVideoPicture;
Expand Down Expand Up @@ -264,13 +264,13 @@ DVDVideoPicture* CDVDCodecUtils::ConvertToYUV422PackedPicture(DVDVideoPicture *p

int dstformat;
if (format == RENDER_FMT_UYVY422)
dstformat = PIX_FMT_UYVY422;
dstformat = AV_PIX_FMT_UYVY422;
else
dstformat = PIX_FMT_YUYV422;
dstformat = AV_PIX_FMT_YUYV422;

struct SwsContext *ctx = sws_getContext(pSrc->iWidth, pSrc->iHeight, PIX_FMT_YUV420P,
struct SwsContext *ctx = sws_getContext(pSrc->iWidth, pSrc->iHeight, AV_PIX_FMT_YUV420P,
pPicture->iWidth, pPicture->iHeight, (AVPixelFormat)dstformat,
SWS_BILINEAR | SwScaleCPUFlags(), NULL, NULL, NULL);
SWS_BILINEAR, NULL, NULL, NULL);
sws_scale(ctx, src, srcStride, 0, pSrc->iHeight, dst, dstStride);
sws_freeContext(ctx);
}
Expand Down Expand Up @@ -403,25 +403,25 @@ double CDVDCodecUtils::NormalizeFrameduration(double frameduration, bool *match)
}

struct EFormatMap {
PixelFormat pix_fmt;
AVPixelFormat pix_fmt;
ERenderFormat format;
};

static const EFormatMap g_format_map[] = {
{ PIX_FMT_YUV420P, RENDER_FMT_YUV420P }
, { PIX_FMT_YUVJ420P, RENDER_FMT_YUV420P }
, { PIX_FMT_YUV420P10, RENDER_FMT_YUV420P10 }
, { PIX_FMT_YUV420P16, RENDER_FMT_YUV420P16 }
, { PIX_FMT_UYVY422, RENDER_FMT_UYVY422 }
, { PIX_FMT_YUYV422, RENDER_FMT_YUYV422 }
, { PIX_FMT_VAAPI_VLD, RENDER_FMT_VAAPI }
, { PIX_FMT_DXVA2_VLD, RENDER_FMT_DXVA }
, { PIX_FMT_NONE , RENDER_FMT_NONE }
{ AV_PIX_FMT_YUV420P, RENDER_FMT_YUV420P }
, { AV_PIX_FMT_YUVJ420P, RENDER_FMT_YUV420P }
, { AV_PIX_FMT_YUV420P10, RENDER_FMT_YUV420P10 }
, { AV_PIX_FMT_YUV420P16, RENDER_FMT_YUV420P16 }
, { AV_PIX_FMT_UYVY422, RENDER_FMT_UYVY422 }
, { AV_PIX_FMT_YUYV422, RENDER_FMT_YUYV422 }
, { AV_PIX_FMT_VAAPI_VLD, RENDER_FMT_VAAPI }
, { AV_PIX_FMT_DXVA2_VLD, RENDER_FMT_DXVA }
, { AV_PIX_FMT_NONE , RENDER_FMT_NONE }
};

ERenderFormat CDVDCodecUtils::EFormatFromPixfmt(int fmt)
{
for(const EFormatMap *p = g_format_map; p->pix_fmt != PIX_FMT_NONE; ++p)
for(const EFormatMap *p = g_format_map; p->pix_fmt != AV_PIX_FMT_NONE; ++p)
{
if(p->pix_fmt == fmt)
return p->format;
Expand All @@ -431,10 +431,10 @@ ERenderFormat CDVDCodecUtils::EFormatFromPixfmt(int fmt)

int CDVDCodecUtils::PixfmtFromEFormat(ERenderFormat fmt)
{
for(const EFormatMap *p = g_format_map; p->pix_fmt != PIX_FMT_NONE; ++p)
for(const EFormatMap *p = g_format_map; p->pix_fmt != AV_PIX_FMT_NONE; ++p)
{
if(p->format == fmt)
return p->pix_fmt;
}
return PIX_FMT_NONE;
return AV_PIX_FMT_NONE;
}
22 changes: 11 additions & 11 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ enum DecoderState
STATE_SW_MULTI
};

enum PixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
, const PixelFormat * fmt )
enum AVPixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
, const AVPixelFormat * fmt )
{
CDVDVideoCodecFFmpeg* ctx = (CDVDVideoCodecFFmpeg*)avctx->opaque;

Expand All @@ -104,8 +104,8 @@ enum PixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
avctx->hwaccel_context = 0;
}

const PixelFormat * cur = fmt;
while(*cur != PIX_FMT_NONE)
const AVPixelFormat * cur = fmt;
while(*cur != AV_PIX_FMT_NONE)
{
#ifdef HAVE_LIBVDPAU
if(VDPAU::CDecoder::IsVDPAUFormat(*cur) && CSettings::GetInstance().GetBool(CSettings::SETTING_VIDEOPLAYER_USEVDPAU))
Expand Down Expand Up @@ -137,7 +137,7 @@ enum PixelFormat CDVDVideoCodecFFmpeg::GetFormat( struct AVCodecContext * avctx
#endif
#ifdef HAVE_LIBVA
// mpeg4 vaapi decoding is disabled
if(*cur == PIX_FMT_VAAPI_VLD && CSettings::GetInstance().GetBool(CSettings::SETTING_VIDEOPLAYER_USEVAAPI))
if(*cur == AV_PIX_FMT_VAAPI_VLD && CSettings::GetInstance().GetBool(CSettings::SETTING_VIDEOPLAYER_USEVAAPI))
{
VAAPI::CDecoder* dec = new VAAPI::CDecoder();
if(dec->Open(avctx, ctx->m_pCodecContext, *cur, ctx->m_uSurfacesCount) == true)
Expand Down Expand Up @@ -214,11 +214,11 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options

for(std::vector<ERenderFormat>::iterator it = options.m_formats.begin(); it != options.m_formats.end(); ++it)
{
m_formats.push_back((PixelFormat)CDVDCodecUtils::PixfmtFromEFormat(*it));
m_formats.push_back((AVPixelFormat)CDVDCodecUtils::PixfmtFromEFormat(*it));
if(*it == RENDER_FMT_YUV420P)
m_formats.push_back(PIX_FMT_YUVJ420P);
m_formats.push_back(AV_PIX_FMT_YUVJ420P);
}
m_formats.push_back(PIX_FMT_NONE); /* always add none to get a terminated list in ffmpeg world */
m_formats.push_back(AV_PIX_FMT_NONE); /* always add none to get a terminated list in ffmpeg world */

pCodec = avcodec_find_decoder(hints.codec);

Expand Down Expand Up @@ -658,7 +658,7 @@ bool CDVDVideoCodecFFmpeg::GetPictureCommon(DVDVideoPicture* pDvdVideoPicture)
pDvdVideoPicture->color_transfer = m_pCodecContext->color_trc;
pDvdVideoPicture->color_matrix = m_pCodecContext->colorspace;
if(m_pCodecContext->color_range == AVCOL_RANGE_JPEG
|| m_pCodecContext->pix_fmt == PIX_FMT_YUVJ420P)
|| m_pCodecContext->pix_fmt == AV_PIX_FMT_YUVJ420P)
pDvdVideoPicture->color_range = 1;
else
pDvdVideoPicture->color_range = 0;
Expand Down Expand Up @@ -741,8 +741,8 @@ bool CDVDVideoCodecFFmpeg::GetPicture(DVDVideoPicture* pDvdVideoPicture)
pDvdVideoPicture->iFlags |= pDvdVideoPicture->data[0] ? 0 : DVP_FLAG_DROPPED;
pDvdVideoPicture->extended_format = 0;

PixelFormat pix_fmt;
pix_fmt = (PixelFormat)m_pFrame->format;
AVPixelFormat pix_fmt;
pix_fmt = (AVPixelFormat)m_pFrame->format;

pDvdVideoPicture->format = CDVDCodecUtils::EFormatFromPixfmt(pix_fmt);
return true;
Expand Down
6 changes: 3 additions & 3 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class CDVDVideoCodecFFmpeg : public CDVDVideoCodec
public:
IHardwareDecoder() {}
virtual ~IHardwareDecoder() {};
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces) = 0;
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces) = 0;
virtual int Decode (AVCodecContext* avctx, AVFrame* frame) = 0;
virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture) = 0;
virtual int Check (AVCodecContext* avctx) = 0;
Expand Down Expand Up @@ -77,7 +77,7 @@ class CDVDVideoCodecFFmpeg : public CDVDVideoCodec
void SetHardware(IHardwareDecoder* hardware);

protected:
static enum PixelFormat GetFormat(struct AVCodecContext * avctx, const PixelFormat * fmt);
static enum AVPixelFormat GetFormat(struct AVCodecContext * avctx, const AVPixelFormat * fmt);

int FilterOpen(const std::string& filters, bool scale);
void FilterClose();
Expand Down Expand Up @@ -119,7 +119,7 @@ class CDVDVideoCodecFFmpeg : public CDVDVideoCodec
int m_iLastKeyframe;
double m_dts;
bool m_started;
std::vector<PixelFormat> m_formats;
std::vector<AVPixelFormat> m_formats;
double m_decoderPts;
int m_skippedDeint;
bool m_requestSkipDeint;
Expand Down
16 changes: 8 additions & 8 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecVDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,11 @@ void CDVDVideoCodecVDA::DisplayQueuePop(void)

void CDVDVideoCodecVDA::UYVY422_to_YUV420P(uint8_t *yuv422_ptr, int yuv422_stride, DVDVideoPicture *picture)
{
// convert PIX_FMT_UYVY422 to PIX_FMT_YUV420P.
// convert AV_PIX_FMT_UYVY422 to AV_PIX_FMT_YUV420P.
struct SwsContext *swcontext = sws_getContext(
m_videobuffer.iWidth, m_videobuffer.iHeight, PIX_FMT_UYVY422,
m_videobuffer.iWidth, m_videobuffer.iHeight, PIX_FMT_YUV420P,
SWS_FAST_BILINEAR | SwScaleCPUFlags(), NULL, NULL, NULL);
m_videobuffer.iWidth, m_videobuffer.iHeight, AV_PIX_FMT_UYVY422,
m_videobuffer.iWidth, m_videobuffer.iHeight, AV_PIX_FMT_YUV420P,
SWS_FAST_BILINEAR, NULL, NULL, NULL);
if (swcontext)
{
uint8_t *src[] = { yuv422_ptr, 0, 0, 0 };
Expand All @@ -574,11 +574,11 @@ void CDVDVideoCodecVDA::UYVY422_to_YUV420P(uint8_t *yuv422_ptr, int yuv422_strid

void CDVDVideoCodecVDA::BGRA_to_YUV420P(uint8_t *bgra_ptr, int bgra_stride, DVDVideoPicture *picture)
{
// convert PIX_FMT_BGRA to PIX_FMT_YUV420P.
// convert AV_PIX_FMT_BGRA to AV_PIX_FMT_YUV420P.
struct SwsContext *swcontext = sws_getContext(
m_videobuffer.iWidth, m_videobuffer.iHeight, PIX_FMT_BGRA,
m_videobuffer.iWidth, m_videobuffer.iHeight, PIX_FMT_YUV420P,
SWS_FAST_BILINEAR | SwScaleCPUFlags(), NULL, NULL, NULL);
m_videobuffer.iWidth, m_videobuffer.iHeight, AV_PIX_FMT_BGRA,
m_videobuffer.iWidth, m_videobuffer.iHeight, AV_PIX_FMT_YUV420P,
SWS_FAST_BILINEAR, NULL, NULL, NULL);
if (swcontext)
{
uint8_t *src[] = { bgra_ptr, 0, 0, 0 };
Expand Down
6 changes: 3 additions & 3 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DXVA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ static bool CheckCompatibility(AVCodecContext *avctx)
return true;
}

bool CDecoder::Open(AVCodecContext *avctx, AVCodecContext* mainctx, enum PixelFormat fmt, unsigned int surfaces)
bool CDecoder::Open(AVCodecContext *avctx, AVCodecContext* mainctx, enum AVPixelFormat fmt, unsigned int surfaces)
{
if (!CheckCompatibility(avctx))
return false;
Expand Down Expand Up @@ -1135,9 +1135,9 @@ bool CDecoder::OpenDecoder()
return true;
}

bool CDecoder::Supports(enum PixelFormat fmt)
bool CDecoder::Supports(enum AVPixelFormat fmt)
{
if(fmt == PIX_FMT_DXVA2_VLD)
if(fmt == AV_PIX_FMT_DXVA2_VLD)
return true;
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/DXVA.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CDecoder
public:
CDecoder();
~CDecoder();
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces);
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces);
virtual int Decode (AVCodecContext* avctx, AVFrame* frame);
virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture);
virtual int Check (AVCodecContext* avctx);
Expand All @@ -154,7 +154,7 @@ class CDecoder
int GetBuffer(AVCodecContext *avctx, AVFrame *pic, int flags);
void RelBuffer(uint8_t *data);

static bool Supports(enum PixelFormat fmt);
static bool Supports(enum AVPixelFormat fmt);

void CloseDXVADecoder();

Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ CDecoder::~CDecoder()
Close();
}

bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat fmt, unsigned int surfaces)
bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat fmt, unsigned int surfaces)
{
// don't support broken wrappers by default
// nvidia cards with a vaapi to vdpau wrapper
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class CDecoder
CDecoder();
virtual ~CDecoder();

virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces = 0);
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces = 0);
virtual int Decode (AVCodecContext* avctx, AVFrame* frame);
virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture);
virtual void Reset();
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/VDA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void CDecoder::Close()
m_bitstream = NULL;
}

bool CDecoder::Open(AVCodecContext *avctx, AVCodecContext* mainctx, enum PixelFormat fmt, unsigned int surfaces)
bool CDecoder::Open(AVCodecContext *avctx, AVCodecContext* mainctx, enum AVPixelFormat fmt, unsigned int surfaces)
{
Close();

Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDCodecs/Video/VDA.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CDecoder
public:
CDecoder();
~CDecoder();
virtual bool Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces = 0);
virtual bool Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces = 0);
virtual int Decode(AVCodecContext* avctx, AVFrame* frame);
virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture);
virtual int Check(AVCodecContext* avctx);
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ CDecoder::CDecoder() : m_vdpauOutput(&m_inMsgEvent)
m_vdpauConfig.context = 0;
}

bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat fmt, unsigned int surfaces)
bool CDecoder::Open(AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat fmt, unsigned int surfaces)
{
// check if user wants to decode this format with VDPAU
std::string gpuvendor = g_Windowing.GetRenderVendor();
Expand Down Expand Up @@ -760,7 +760,7 @@ int CDecoder::Check(AVCodecContext* avctx)
return 0;
}

bool CDecoder::IsVDPAUFormat(PixelFormat format)
bool CDecoder::IsVDPAUFormat(AVPixelFormat format)
{
if (format == AV_PIX_FMT_VDPAU)
return true;
Expand Down
4 changes: 2 additions & 2 deletions xbmc/cores/VideoPlayer/DVDCodecs/Video/VDPAU.h
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ class CDecoder
CDecoder();
virtual ~CDecoder();

virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum PixelFormat, unsigned int surfaces = 0);
virtual bool Open (AVCodecContext* avctx, AVCodecContext* mainctx, const enum AVPixelFormat, unsigned int surfaces = 0);
virtual int Decode (AVCodecContext* avctx, AVFrame* frame);
virtual bool GetPicture(AVCodecContext* avctx, AVFrame* frame, DVDVideoPicture* picture);
virtual void Reset();
Expand All @@ -572,7 +572,7 @@ class CDecoder
bool Supports(VdpVideoMixerFeature feature);
bool Supports(EINTERLACEMETHOD method);
EINTERLACEMETHOD AutoInterlaceMethod();
static bool IsVDPAUFormat(PixelFormat fmt);
static bool IsVDPAUFormat(AVPixelFormat fmt);

static void FFReleaseBuffer(void *opaque, uint8_t *data);
static int FFGetBuffer(AVCodecContext *avctx, AVFrame *pic, int flags);
Expand Down
6 changes: 3 additions & 3 deletions xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ void CDVDDemuxFFmpeg::ParsePacket(AVPacket *pkt)

// for video we need a decoder to get desired information into codec context
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && st->codec->extradata &&
(!st->codec->width || st->codec->pix_fmt == PIX_FMT_NONE))
(!st->codec->width || st->codec->pix_fmt == AV_PIX_FMT_NONE))
{
// open a decoder, it will be cleared down by ffmpeg on closing the stream
if (!st->codec->codec)
Expand Down Expand Up @@ -1697,7 +1697,7 @@ bool CDVDDemuxFFmpeg::IsVideoReady()
st = m_pFormatContext->streams[idx];
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
{
if (st->codec->width && st->codec->pix_fmt != PIX_FMT_NONE)
if (st->codec->width && st->codec->pix_fmt != AV_PIX_FMT_NONE)
return true;
hasVideo = true;
}
Expand All @@ -1710,7 +1710,7 @@ bool CDVDDemuxFFmpeg::IsVideoReady()
st = m_pFormatContext->streams[i];
if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
{
if (st->codec->width && st->codec->pix_fmt != PIX_FMT_NONE)
if (st->codec->width && st->codec->pix_fmt != AV_PIX_FMT_NONE)
return true;
hasVideo = true;
}
Expand Down
2 changes: 1 addition & 1 deletion xbmc/cores/VideoPlayer/DVDFileInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool CDVDFileInfo::ExtractThumb(const std::string &strPath,

uint8_t *pOutBuf = new uint8_t[nWidth * nHeight * 4];
struct SwsContext *context = sws_getContext(picture.iWidth, picture.iHeight,
PIX_FMT_YUV420P, nWidth, nHeight, PIX_FMT_BGRA, SWS_FAST_BILINEAR | SwScaleCPUFlags(), NULL, NULL, NULL);
AV_PIX_FMT_YUV420P, nWidth, nHeight, AV_PIX_FMT_BGRA, SWS_FAST_BILINEAR, NULL, NULL, NULL);

if (context)
{
Expand Down
Loading

0 comments on commit 400ce99

Please sign in to comment.