mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-13 21:26:33 +02:00
avcodec/internal: Move ff_get_format() to decode.h
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
6be4b534ce
commit
17e23aed41
@ -99,4 +99,17 @@ int ff_copy_palette(void *dst, const AVPacket *src, void *logctx);
|
|||||||
*/
|
*/
|
||||||
int ff_decode_preinit(AVCodecContext *avctx);
|
int ff_decode_preinit(AVCodecContext *avctx);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Select the (possibly hardware accelerated) pixel format.
|
||||||
|
* This is a wrapper around AVCodecContext.get_format() and should be used
|
||||||
|
* instead of calling get_format() directly.
|
||||||
|
*
|
||||||
|
* The list of pixel formats must contain at least one valid entry, and is
|
||||||
|
* terminated with AV_PIX_FMT_NONE. If it is possible to decode to software,
|
||||||
|
* the last entry in the list must be the most accurate software format.
|
||||||
|
* If it is not possible to decode to software, AVCodecContext.sw_pix_fmt
|
||||||
|
* must be set before calling this function.
|
||||||
|
*/
|
||||||
|
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);
|
||||||
|
|
||||||
#endif /* AVCODEC_DECODE_H */
|
#endif /* AVCODEC_DECODE_H */
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "error_resilience.h"
|
#include "error_resilience.h"
|
||||||
#include "flvdec.h"
|
#include "flvdec.h"
|
||||||
#include "h263.h"
|
#include "h263.h"
|
||||||
|
@ -248,19 +248,6 @@ int ff_set_sar(AVCodecContext *avctx, AVRational sar);
|
|||||||
int ff_side_data_update_matrix_encoding(AVFrame *frame,
|
int ff_side_data_update_matrix_encoding(AVFrame *frame,
|
||||||
enum AVMatrixEncoding matrix_encoding);
|
enum AVMatrixEncoding matrix_encoding);
|
||||||
|
|
||||||
/**
|
|
||||||
* Select the (possibly hardware accelerated) pixel format.
|
|
||||||
* This is a wrapper around AVCodecContext.get_format() and should be used
|
|
||||||
* instead of calling get_format() directly.
|
|
||||||
*
|
|
||||||
* The list of pixel formats must contain at least one valid entry, and is
|
|
||||||
* terminated with AV_PIX_FMT_NONE. If it is possible to decode to software,
|
|
||||||
* the last entry in the list must be the most accurate software format.
|
|
||||||
* If it is not possible to decode to software, AVCodecContext.sw_pix_fmt
|
|
||||||
* must be set before calling this function.
|
|
||||||
*/
|
|
||||||
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a CPB properties side data to an encoding context.
|
* Add a CPB properties side data to an encoding context.
|
||||||
*/
|
*/
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "libavutil/timestamp.h"
|
#include "libavutil/timestamp.h"
|
||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
|
||||||
#include "mediacodec.h"
|
#include "mediacodec.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "hwconfig.h"
|
#include "hwconfig.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "pthread_internal.h"
|
#include "pthread_internal.h"
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "codec.h"
|
#include "codec.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "hwconfig.h"
|
#include "hwconfig.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
#include "threadframe.h"
|
#include "threadframe.h"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "blockdsp.h"
|
#include "blockdsp.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "get_bits.h"
|
#include "get_bits.h"
|
||||||
#include "hwconfig.h"
|
#include "hwconfig.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "codec_internal.h"
|
#include "codec_internal.h"
|
||||||
|
#include "decode.h"
|
||||||
#include "hwconfig.h"
|
#include "hwconfig.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "mathops.h"
|
#include "mathops.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user