|
vdr-plugin-softhddevice-drm-gles 1.5.9-20e15de
|
Video decoder class. More...
#include <libavcodec/avcodec.h>#include <libavcodec/bsf.h>#include <libavutil/pixdesc.h>#include <vdr/thread.h>#include "codec_video.h"#include "logger.h"#include "misc.h"#include "videostream.h"Go to the source code of this file.
Functions | |
| static enum AVPixelFormat | GetFormat (AVCodecContext *videoCtx, const enum AVPixelFormat *fmt) |
| Callback to negotiate the PixelFormat. | |
| static const AVCodecHWConfig * | FindHWConfig (const AVCodec *codec) |
| Find a hardware based video decoder config. | |
| static const AVCodec * | FindHWDecoder (enum AVCodecID codecId) |
| Find a suitable video codec (hardware decoding) | |
| static const AVCodec * | FindSWDecoder (enum AVCodecID codecId) |
| Find a suitable video codec (software decoding) | |
Video decoder class.
This file defines cVideoDecoder, which has all the functions to decode video data. It's the video interface to ffmpeg.
AGPLv3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
Definition in file codec_video.cpp.
|
static |
Find a hardware based video decoder config.
| codec | codec for which we should find a hw config |
Definition at line 83 of file codec_video.cpp.
Referenced by FindHWDecoder(), and cVideoDecoder::Open().
|
static |
Find a suitable video codec (hardware decoding)
| codecId | video codec id |
Definition at line 107 of file codec_video.cpp.
References FindHWConfig().
Referenced by cVideoDecoder::Open().
|
static |
Find a suitable video codec (software decoding)
| codecId | video codec id |
Definition at line 134 of file codec_video.cpp.
Referenced by cVideoDecoder::Open().
|
static |
Callback to negotiate the PixelFormat.
| videoCtx | video codec context |
| fmt | the list of formats which are supported by the codec, it is terminated by -1 as 0 is a valid format, the formats are ordered by quality |
Definition at line 54 of file codec_video.cpp.
References L_CODEC, LOGDEBUG2, and LOGWARNING.
Referenced by cVideoDecoder::Open().