mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 23:42:43 +02:00
Origin commit data
------------------
Branch: master
Commit: 42efb5c739
Author: martii <m4rtii@gmx.de>
Date: 2014-04-07 (Mon, 07 Apr 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
36 lines
939 B
C++
36 lines
939 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
|