11 #if AVCPP_HAS_AVFORMAT
18 friend class FormatContext;
29 Rational frameRate()
const;
30 Rational timeBase()
const;
31 Rational sampleAspectRatio()
const;
32 Rational averageFrameRate()
const;
33 Timestamp startTime()
const;
34 Timestamp duration()
const;
36 [[deprecated(
"For FFmpeg 5.0+ return NO_PTS")]]
37 Timestamp currentDts()
const;
38 AVMediaType mediaType()
const;
43 bool isSubtitle()
const;
44 bool isAttachment()
const;
46 Direction direction()
const {
return m_direction; }
48 void setTimeBase(
const Rational &timeBase);
49 void setFrameRate(
const Rational &frameRate);
50 void setSampleAspectRatio(
const Rational &aspectRatio);
51 void setAverageFrameRate(
const Rational &frameRate);
53 CodecParametersView codecParameters()
const;
54 void setCodecParameters(CodecParametersView codecpar, OptionalErrorCode ec =
throws());
62 int eventFlags() const noexcept;
63 bool eventFlags(
int flags) const noexcept;
64 void eventFlagsClear(
int flags) noexcept;
66 void setupEncodingParameters(const class VideoEncoderContext& ctx, OptionalErrorCode ec =
throws());
69 std::weak_ptr<
char> m_parentMonitor;
Definition: audioresampler.cpp:8
OptionalErrorCode throws()
Helper to construct null OptionalErrorCode object.
Definition: averror.h:179
Direction
Definition: codecparameters.h:16
Definition: averror.h:228