mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*
This commit is contained in:
@@ -216,7 +216,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type)
|
||||
for (fmt = 0; fmt < num_formats; fmt++) {
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
||||
if ((type != AVMEDIA_TYPE_VIDEO) ||
|
||||
(type == AVMEDIA_TYPE_VIDEO && !(desc->flags & PIX_FMT_HWACCEL)))
|
||||
(type == AVMEDIA_TYPE_VIDEO && !(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)))
|
||||
ff_add_format(&ret, fmt);
|
||||
}
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
|
||||
frame->data[0] += crop->y * frame->linesize[0];
|
||||
frame->data[0] += crop->x * crop->max_step[0];
|
||||
|
||||
if (!(desc->flags & PIX_FMT_PAL || desc->flags & PIX_FMT_PSEUDOPAL)) {
|
||||
if (!(desc->flags & AV_PIX_FMT_FLAG_PAL || desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)) {
|
||||
for (i = 1; i < 3; i ++) {
|
||||
if (frame->data[i]) {
|
||||
frame->data[i] += (crop->y >> crop->vsub) * frame->linesize[i];
|
||||
|
||||
@@ -56,8 +56,8 @@ static int query_formats(AVFilterContext *ctx)
|
||||
formats = NULL;
|
||||
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++) {
|
||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
||||
if (!(desc->flags & PIX_FMT_HWACCEL ||
|
||||
desc->flags & PIX_FMT_BITSTREAM) &&
|
||||
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
|
||||
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
|
||||
desc->nb_components && !desc->log2_chroma_h &&
|
||||
(ret = ff_add_format(&formats, pix_fmt)) < 0) {
|
||||
ff_formats_unref(&formats);
|
||||
|
||||
@@ -78,8 +78,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
}
|
||||
|
||||
/* copy palette */
|
||||
if (priv->pix_desc->flags & PIX_FMT_PAL ||
|
||||
priv->pix_desc->flags & PIX_FMT_PSEUDOPAL)
|
||||
if (priv->pix_desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
||||
priv->pix_desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL)
|
||||
memcpy(out->data[1], in->data[1], 256*4);
|
||||
|
||||
for (c = 0; c < priv->pix_desc->nb_components; c++) {
|
||||
|
||||
@@ -220,8 +220,8 @@ static int config_props(AVFilterLink *outlink)
|
||||
outlink->w, outlink->h, av_get_pix_fmt_name(outlink->format),
|
||||
scale->flags);
|
||||
|
||||
scale->input_is_pal = desc->flags & PIX_FMT_PAL ||
|
||||
desc->flags & PIX_FMT_PSEUDOPAL;
|
||||
scale->input_is_pal = desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
||||
desc->flags & AV_PIX_FMT_FLAG_PSEUDOPAL;
|
||||
|
||||
if (scale->sws)
|
||||
sws_freeContext(scale->sws);
|
||||
|
||||
Reference in New Issue
Block a user