mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Replace PixelFormats which sneaked in over time or where forgotten by AVPixelFormats
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4fae556322
commit
0f16dfda50
@ -50,7 +50,7 @@ static inline void smv_img_pnt_plane(uint8_t **dst, uint8_t *src,
|
|||||||
|
|
||||||
static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4],
|
static inline void smv_img_pnt(uint8_t *dst_data[4], uint8_t *src_data[4],
|
||||||
const int src_linesizes[4],
|
const int src_linesizes[4],
|
||||||
enum PixelFormat pix_fmt, int width, int height,
|
enum AVPixelFormat pix_fmt, int width, int height,
|
||||||
int nlines)
|
int nlines)
|
||||||
{
|
{
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
||||||
|
@ -237,5 +237,5 @@ AVCodec ff_xface_encoder = {
|
|||||||
.init = xface_encode_init,
|
.init = xface_encode_init,
|
||||||
.close = xface_encode_close,
|
.close = xface_encode_close,
|
||||||
.encode2 = xface_encode_frame,
|
.encode2 = xface_encode_frame,
|
||||||
.pix_fmts = (const enum PixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
|
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
|
||||||
};
|
};
|
||||||
|
@ -75,7 +75,7 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
||||||
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
|
@ -492,7 +492,7 @@ static void row_fdct_c(int16_t *data, const uint8_t *pixels, ptrdiff_t line_size
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
||||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
||||||
|
@ -165,14 +165,14 @@ end:
|
|||||||
static int geq_query_formats(AVFilterContext *ctx)
|
static int geq_query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
GEQContext *geq = ctx->priv;
|
GEQContext *geq = ctx->priv;
|
||||||
static const enum PixelFormat yuv_pix_fmts[] = {
|
static const enum AVPixelFormat yuv_pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P,
|
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P,
|
||||||
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
||||||
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVA422P, AV_PIX_FMT_YUVA420P,
|
AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUVA422P, AV_PIX_FMT_YUVA420P,
|
||||||
AV_PIX_FMT_GRAY8,
|
AV_PIX_FMT_GRAY8,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
static const enum PixelFormat rgb_pix_fmts[] = {
|
static const enum AVPixelFormat rgb_pix_fmts[] = {
|
||||||
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
|
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
|
@ -94,7 +94,7 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA, AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
||||||
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24,
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
|
@ -68,7 +68,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV420P,
|
AV_PIX_FMT_YUV420P,
|
||||||
AV_PIX_FMT_YUYV422,
|
AV_PIX_FMT_YUYV422,
|
||||||
AV_PIX_FMT_ARGB, AV_PIX_FMT_0RGB,
|
AV_PIX_FMT_ARGB, AV_PIX_FMT_0RGB,
|
||||||
|
@ -160,7 +160,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
|
AVFilterFormats *fmts_list = ff_make_format_list(pix_fmts);
|
||||||
|
@ -75,7 +75,7 @@ static int pp_process_command(AVFilterContext *ctx, const char *cmd, const char
|
|||||||
|
|
||||||
static int pp_query_formats(AVFilterContext *ctx)
|
static int pp_query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P,
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P,
|
||||||
AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVJ422P,
|
AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVJ422P,
|
||||||
AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV411P,
|
||||||
|
@ -272,7 +272,7 @@ static void filter(PP7Context *p, uint8_t *dst, uint8_t *src,
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
||||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
||||||
|
@ -217,7 +217,7 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16,
|
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16,
|
||||||
#define PF_NOALPHA(suf) AV_PIX_FMT_YUV420##suf, AV_PIX_FMT_YUV422##suf, AV_PIX_FMT_YUV444##suf
|
#define PF_NOALPHA(suf) AV_PIX_FMT_YUV420##suf, AV_PIX_FMT_YUV422##suf, AV_PIX_FMT_YUV444##suf
|
||||||
#define PF_ALPHA(suf) AV_PIX_FMT_YUVA420##suf, AV_PIX_FMT_YUVA422##suf, AV_PIX_FMT_YUVA444##suf
|
#define PF_ALPHA(suf) AV_PIX_FMT_YUVA420##suf, AV_PIX_FMT_YUVA422##suf, AV_PIX_FMT_YUVA444##suf
|
||||||
|
@ -130,7 +130,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
|
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP,
|
||||||
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA,
|
AV_PIX_FMT_ARGB, AV_PIX_FMT_RGBA,
|
||||||
AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
AV_PIX_FMT_ABGR, AV_PIX_FMT_BGRA,
|
||||||
|
@ -303,7 +303,7 @@ static void filter(SPPContext *p, uint8_t *dst, uint8_t *src,
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P,
|
||||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
|
||||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV440P,
|
||||||
|
@ -284,7 +284,7 @@ static void filter(USPPContext *p, uint8_t *dst[3], uint8_t *src[3],
|
|||||||
|
|
||||||
static int query_formats(AVFilterContext *ctx)
|
static int query_formats(AVFilterContext *ctx)
|
||||||
{
|
{
|
||||||
static const enum PixelFormat pix_fmts[] = {
|
static const enum AVPixelFormat pix_fmts[] = {
|
||||||
AV_PIX_FMT_YUV444P,
|
AV_PIX_FMT_YUV444P,
|
||||||
AV_PIX_FMT_YUV420P,
|
AV_PIX_FMT_YUV420P,
|
||||||
AV_PIX_FMT_YUV410P,
|
AV_PIX_FMT_YUV410P,
|
||||||
|
Loading…
Reference in New Issue
Block a user