mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
Origin commit data
------------------
Branch: master
Commit: 889d68740c
Author: martii <m4rtii@gmx.de>
Date: 2014-04-06 (Sun, 06 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
36 lines
933 B
C++
36 lines
933 B
C++
#ifndef WRITER_H_
|
|
#define WRITER_H_
|
|
|
|
#include <stdio.h>
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
extern "C" {
|
|
#include <libavutil/avutil.h>
|
|
#include <libavutil/time.h>
|
|
#include <libavformat/avformat.h>
|
|
#include <libswresample/swresample.h>
|
|
#include <libavutil/opt.h>
|
|
}
|
|
|
|
#include <linux/dvb/stm_ioctls.h>
|
|
|
|
#define AV_CODEC_ID_INJECTPCM AV_CODEC_ID_PCM_S16LE
|
|
|
|
class Writer
|
|
{
|
|
public:
|
|
static void Register(Writer *w, enum AVCodecID id, video_encoding_t encoding);
|
|
static void Register(Writer *w, enum AVCodecID id, audio_encoding_t encoding);
|
|
static video_encoding_t GetVideoEncoding(enum AVCodecID id);
|
|
static audio_encoding_t GetAudioEncoding(enum AVCodecID id);
|
|
static Writer *GetWriter(enum AVCodecID id, enum AVMediaType codec_type);
|
|
|
|
virtual void Init(void) { }
|
|
virtual bool Write(int fd, AVFormatContext *avfc, AVStream *stream, AVPacket *packet, int64_t &pts);
|
|
|
|
Writer() { Init (); }
|
|
~Writer() {}
|
|
};
|
|
#endif
|