mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '5da5128493'
* commit '5da5128493':
cavs: Add a dependency on h264chroma
lavc: Split out ff_hwaccel_pixfmt_list_420[] over individual codecs
Conflicts:
libavcodec/h263dec.c
libavcodec/h264.c
libavcodec/mpeg12.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
fa3a7b55ec
1 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ static const uint8_t div6[QP_MAX_NUM + 1] = {
|
||||||
14,14,14,14,
|
14,14,14,14,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const enum AVPixelFormat hwaccel_pixfmt_list_h264_420[] = {
|
static const enum AVPixelFormat h264_hwaccel_pixfmt_list_420[] = {
|
||||||
#if CONFIG_H264_DXVA2_HWACCEL
|
#if CONFIG_H264_DXVA2_HWACCEL
|
||||||
AV_PIX_FMT_DXVA2_VLD,
|
AV_PIX_FMT_DXVA2_VLD,
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -85,7 +85,7 @@ static const enum AVPixelFormat hwaccel_pixfmt_list_h264_420[] = {
|
||||||
AV_PIX_FMT_NONE
|
AV_PIX_FMT_NONE
|
||||||
};
|
};
|
||||||
|
|
||||||
static const enum AVPixelFormat hwaccel_pixfmt_list_h264_jpeg_420[] = {
|
static const enum AVPixelFormat h264_hwaccel_pixfmt_list_jpeg_420[] = {
|
||||||
#if CONFIG_H264_DXVA2_HWACCEL
|
#if CONFIG_H264_DXVA2_HWACCEL
|
||||||
AV_PIX_FMT_DXVA2_VLD,
|
AV_PIX_FMT_DXVA2_VLD,
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -2972,8 +2972,8 @@ static enum PixelFormat get_pixel_format(H264Context *h, int force_callback)
|
||||||
const enum AVPixelFormat * fmt = h->avctx->codec->pix_fmts ?
|
const enum AVPixelFormat * fmt = h->avctx->codec->pix_fmts ?
|
||||||
h->avctx->codec->pix_fmts :
|
h->avctx->codec->pix_fmts :
|
||||||
h->avctx->color_range == AVCOL_RANGE_JPEG ?
|
h->avctx->color_range == AVCOL_RANGE_JPEG ?
|
||||||
hwaccel_pixfmt_list_h264_jpeg_420 :
|
h264_hwaccel_pixfmt_list_jpeg_420 :
|
||||||
hwaccel_pixfmt_list_h264_420;
|
h264_hwaccel_pixfmt_list_420;
|
||||||
|
|
||||||
for (i=0; fmt[i] != AV_PIX_FMT_NONE; i++)
|
for (i=0; fmt[i] != AV_PIX_FMT_NONE; i++)
|
||||||
if (fmt[i] == h->avctx->pix_fmt && !force_callback)
|
if (fmt[i] == h->avctx->pix_fmt && !force_callback)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue