MythTV  master
mythvdpaucontext.h
Go to the documentation of this file.
1 #ifndef MYTHVDPAUCONTEXT_H
2 #define MYTHVDPAUCONTEXT_H
3 
4 // MythTV
5 #include "mythcodeccontext.h"
6 
8 {
9  public:
10  MythVDPAUContext(DecoderBase *Parent, MythCodecID CodecID);
11 
12  void InitVideoCodec (AVCodecContext *Context, bool SelectedStream, bool &DirectRendering) override;
13  bool RetrieveFrame (AVCodecContext *Context, VideoFrame* Frame, AVFrame* AvFrame) override;
14  bool DecoderWillResetOnFlush (void) override;
15  bool DecoderWillResetOnAspect (void) override;
16  bool DecoderNeedsReset (AVCodecContext *Context) override;
17 
18  static MythCodecID GetSupportedCodec (AVCodecContext **CodecContext,
19  AVCodec **Codec,
20  const QString &Decoder,
21  uint StreamType);
22  static enum AVPixelFormat GetFormat (AVCodecContext *Context,
23  const enum AVPixelFormat *PixFmt);
24  static enum AVPixelFormat GetFormat2 (AVCodecContext *Context,
25  const enum AVPixelFormat *PixFmt);
26 
27  private:
28  static int InitialiseContext (AVCodecContext *Context);
29 };
30 
31 #endif // MYTHVDPAUCONTEXT_H
void InitVideoCodec(AVCodecContext *Context, bool SelectedStream, bool &DirectRendering) override
QHash< QString, Action * > Context
Definition: action.h:77
MythCodecID
Definition: mythcodecid.h:10
MythVDPAUContext(DecoderBase *Parent, MythCodecID CodecID)
static enum AVPixelFormat GetFormat(AVCodecContext *Context, const enum AVPixelFormat *PixFmt)
\ brief Confirm pixel format and create VDPAU device for direct rendering (MythVDPAUInterop required)
struct AVFrame AVFrame
static int InitialiseContext(AVCodecContext *Context)
Create a VDPAU device for use with direct rendering.
bool RetrieveFrame(AVCodecContext *Context, VideoFrame *Frame, AVFrame *AvFrame) override
static MythCodecID GetSupportedCodec(AVCodecContext **CodecContext, AVCodec **Codec, const QString &Decoder, uint StreamType)
unsigned int uint
Definition: compat.h:140
static enum AVPixelFormat GetFormat2(AVCodecContext *Context, const enum AVPixelFormat *PixFmt)
\ brief Confirm pixel format and create VDPAU device for copy back (no MythVDPAUInterop required)
bool DecoderWillResetOnAspect(void) override
bool DecoderNeedsReset(AVCodecContext *Context) override
Report whether the decoder is known to be errored.
bool DecoderWillResetOnFlush(void) override