A reference to the AVHWFramesContext describing the input (for encoding)
or output (decoding) frames. The reference is set by the caller and
afterwards owned (and freed) by libavcodec - it should never be read by
the caller after being set.
- decoding: This field should be set by the caller from the get_format()
callback. The previous reference (if any) will always be
unreffed by libavcodec before the get_format() call.
If the default get_buffer2() is used with a hwaccel pixel
format, then this AVHWFramesContext will be used for
allocating the frame buffers.
- encoding: For hardware encoders configured to use a hwaccel pixel
format, this field should be set by the caller to a reference
to the AVHWFramesContext describing input frames.
AVHWFramesContext.format must be equal to
AVCodecContext.pix_fmt.
This field should be set before avcodec_open2() is called.
A reference to the AVHWFramesContext describing the input (for encoding) or output (decoding) frames. The reference is set by the caller and afterwards owned (and freed) by libavcodec - it should never be read by the caller after being set.
- decoding: This field should be set by the caller from the get_format() callback. The previous reference (if any) will always be unreffed by libavcodec before the get_format() call.
If the default get_buffer2() is used with a hwaccel pixel format, then this AVHWFramesContext will be used for allocating the frame buffers.
- encoding: For hardware encoders configured to use a hwaccel pixel format, this field should be set by the caller to a reference to the AVHWFramesContext describing input frames. AVHWFramesContext.format must be equal to AVCodecContext.pix_fmt.
This field should be set before avcodec_open2() is called.