AvTranscoder  0.9.4
C++APIforLibav/FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VideoCodec.hpp
Go to the documentation of this file.
1 #ifndef _AV_TRANSCODER_CODEC_VIDEO_CODEC_HPP_
2 #define _AV_TRANSCODER_CODEC_VIDEO_CODEC_HPP_
3 
4 #include "ICodec.hpp"
6 
7 namespace avtranscoder
8 {
9 
10 class AvExport VideoCodec : public ICodec
11 {
12 public:
13  VideoCodec(const ECodecType type, const std::string& codecName = "");
14  VideoCodec(const ECodecType type, const AVCodecID codecId);
15  VideoCodec(const ECodecType type, AVCodecContext& avCodecContext);
16 
17  VideoFrameDesc getVideoFrameDesc() const;
18 
19  void setImageParameters(const VideoFrameDesc& videoFrameDesc);
20 };
21 }
22 
23 #endif
Description to create a video frame.
Definition: VideoFrame.hpp:21
#define AVCodecID
Definition: common.hpp:45
ECodecType
Define if a codec is for encoding or decoding.
Definition: ICodec.hpp:19