mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
Move avpriv_find_pix_fmt() to utils.c
Fixes build with --disable-everything Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
686e662676
commit
82a90e7764
@ -26,7 +26,6 @@ OBJS = allcodecs.o \
|
|||||||
options.o \
|
options.o \
|
||||||
parser.o \
|
parser.o \
|
||||||
raw.o \
|
raw.o \
|
||||||
rawdec.o \
|
|
||||||
resample.o \
|
resample.o \
|
||||||
resample2.o \
|
resample2.o \
|
||||||
utils.o \
|
utils.o \
|
||||||
|
@ -89,17 +89,6 @@ static const PixelFormatTag pix_fmt_bps_mov[] = {
|
|||||||
{ AV_PIX_FMT_NONE, 0 },
|
{ AV_PIX_FMT_NONE, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
enum AVPixelFormat avpriv_find_pix_fmt(const PixelFormatTag *tags,
|
|
||||||
unsigned int fourcc)
|
|
||||||
{
|
|
||||||
while (tags->pix_fmt >= 0) {
|
|
||||||
if (tags->fourcc == fourcc)
|
|
||||||
return tags->pix_fmt;
|
|
||||||
tags++;
|
|
||||||
}
|
|
||||||
return AV_PIX_FMT_NONE;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if LIBAVCODEC_VERSION_MAJOR < 55
|
#if LIBAVCODEC_VERSION_MAJOR < 55
|
||||||
enum AVPixelFormat ff_find_pix_fmt(const PixelFormatTag *tags, unsigned int fourcc)
|
enum AVPixelFormat ff_find_pix_fmt(const PixelFormatTag *tags, unsigned int fourcc)
|
||||||
{
|
{
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "frame_thread_encoder.h"
|
#include "frame_thread_encoder.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
#include "raw.h"
|
||||||
#include "bytestream.h"
|
#include "bytestream.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -1071,6 +1072,17 @@ int avcodec_default_execute2(AVCodecContext *c, int (*func)(AVCodecContext *c2,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum AVPixelFormat avpriv_find_pix_fmt(const PixelFormatTag *tags,
|
||||||
|
unsigned int fourcc)
|
||||||
|
{
|
||||||
|
while (tags->pix_fmt >= 0) {
|
||||||
|
if (tags->fourcc == fourcc)
|
||||||
|
return tags->pix_fmt;
|
||||||
|
tags++;
|
||||||
|
}
|
||||||
|
return AV_PIX_FMT_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
|
static int is_hwaccel_pix_fmt(enum AVPixelFormat pix_fmt)
|
||||||
{
|
{
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
||||||
|
Loading…
Reference in New Issue
Block a user