1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-09 09:16:59 +02:00

avcodec/internal: Move ff_set_sar() to decode.h

Only used by decoders, as the SAR has to be set by the user
when encoding.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-08-24 21:43:37 +02:00
parent 66b691f99f
commit b6a680989c
9 changed files with 13 additions and 6 deletions

View File

@ -27,6 +27,7 @@
#include "av1dec.h"
#include "bytestream.h"
#include "codec_internal.h"
#include "decode.h"
#include "hwconfig.h"
#include "internal.h"
#include "profiles.h"

View File

@ -99,6 +99,12 @@ int ff_copy_palette(void *dst, const AVPacket *src, void *logctx);
*/
int ff_decode_preinit(AVCodecContext *avctx);
/**
* Check that the provided sample aspect ratio is valid and set it on the codec
* context.
*/
int ff_set_sar(AVCodecContext *avctx, AVRational sar);
/**
* Select the (possibly hardware accelerated) pixel format.
* This is a wrapper around AVCodecContext.get_format() and should be used

View File

@ -44,6 +44,7 @@
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "dv.h"
#include "dv_profile_internal.h"
#include "dvdata.h"

View File

@ -51,6 +51,7 @@
#endif
#include "codec_internal.h"
#include "decode.h"
#include "exrdsp.h"
#include "get_bits.h"
#include "internal.h"

View File

@ -36,6 +36,7 @@
#include "internal.h"
#include "cabac.h"
#include "cabac_functions.h"
#include "decode.h"
#include "error_resilience.h"
#include "avcodec.h"
#include "h264.h"

View File

@ -42,6 +42,7 @@
#include "bytestream.h"
#include "cabac_functions.h"
#include "codec_internal.h"
#include "decode.h"
#include "golomb.h"
#include "hevc.h"
#include "hevc_data.h"

View File

@ -222,12 +222,6 @@ int avpriv_codec_get_cap_skip_frame_fill_param(const AVCodec *codec);
*/
int ff_set_dimensions(AVCodecContext *s, int width, int height);
/**
* Check that the provided sample aspect ratio is valid and set it on the codec
* context.
*/
int ff_set_sar(AVCodecContext *avctx, AVRational sar);
/**
* Add or update AV_FRAME_DATA_MATRIXENCODING side data.
*/

View File

@ -30,6 +30,7 @@
#include "libavutil/thread.h"
#include "internal.h"
#include "avcodec.h"
#include "decode.h"
#include "mpegvideo.h"
#include "vc1.h"
#include "vc1data.h"

View File

@ -41,6 +41,7 @@
#include "avcodec.h"
#include "codec_internal.h"
#include "decode.h"
#include "get_bits.h"
#include "hpeldsp.h"
#include "internal.h"