summaryrefslogtreecommitdiffstats
path: root/libavcodec/nvdec.h
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2018-10-06 20:20:58 -0700
committerPhilip Langdale <philipl@overt.org>2019-02-16 08:47:36 -0800
commit83c7ac2e47efd96927127c1c385cdbb5fb53cb02 (patch)
tree81acf95f1623d5d1d15e4d282a4d15f472499b77 /libavcodec/nvdec.h
parente06ccfbe1d33c00d6f1df202a514219c7fdb7c03 (diff)
downloadffmpeg-streaming-83c7ac2e47efd96927127c1c385cdbb5fb53cb02.zip
ffmpeg-streaming-83c7ac2e47efd96927127c1c385cdbb5fb53cb02.tar.gz
avcodec/nvdec: Explicitly mark codecs that support 444 output formats
With the introduction of HEVC 444 support, we technically have two codecs that can handle 444 - HEVC and MJPEG. In the case of MJPEG, it can decode, but can only output one of the semi-planar formats. That means we need additional logic to decide whether to use a 444 output format or not.
Diffstat (limited to 'libavcodec/nvdec.h')
-rw-r--r--libavcodec/nvdec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/nvdec.h b/libavcodec/nvdec.h
index 85a0fcf..09ae8c3 100644
--- a/libavcodec/nvdec.h
+++ b/libavcodec/nvdec.h
@@ -61,6 +61,8 @@ typedef struct NVDECContext {
unsigned *slice_offsets;
int nb_slices;
unsigned int slice_offsets_allocated;
+
+ int supports_444;
} NVDECContext;
int ff_nvdec_decode_init(AVCodecContext *avctx);
@@ -72,7 +74,8 @@ int ff_nvdec_simple_decode_slice(AVCodecContext *avctx, const uint8_t *buffer,
uint32_t size);
int ff_nvdec_frame_params(AVCodecContext *avctx,
AVBufferRef *hw_frames_ctx,
- int dpb_size);
+ int dpb_size,
+ int supports_444);
int ff_nvdec_get_ref_idx(AVFrame *frame);
#endif /* AVCODEC_NVDEC_H */
OpenPOWER on IntegriCloud