|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
Rendering class. More...
#include <algorithm>#include <atomic>#include <functional>#include <stdbool.h>#include <unistd.h>#include <inttypes.h>#include <libintl.h>#include <pthread.h>#include <errno.h>#include <fcntl.h>#include <string.h>#include <sys/mman.h>#include <drm_fourcc.h>#include "logger.h"#include <libavcodec/avcodec.h>#include <libavutil/hwcontext_drm.h>#include <libavutil/pixdesc.h>#include <libavfilter/buffersink.h>#include <libavfilter/buffersrc.h>#include <libavutil/opt.h>#include "misc.h"#include "buf2rgb.h"#include "videorender.h"#include "audio.h"#include "drm.h"#include "threads.h"#include "grab.h"#include "drmdevice.h"
Go to the source code of this file.
Classes | |
| struct | sRect |
Macros | |
| #define | __USE_GNU |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
Functions | |
| static sRect | ComputeFittedRect (AVFrame *frame, uint64_t dispX, uint64_t dispY, uint64_t dispWidth, uint64_t dispHeight) |
| Fits the video frame into a given area. More... | |
| static void | ReleaseFrame (__attribute__((unused)) void *opaque, uint8_t *data) |
| Callback free primedata if av_buffer is unreferenced. More... | |
Rendering class.
This file defines cVideoRender, which includes all methods to bring the video and osd to display.
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 videorender.cpp.
| #define __USE_GNU |
Definition at line 26 of file videorender.cpp.
| #define MIN | ( | a, | |
| b | |||
| ) | ((a) < (b) ? (a) : (b)) |
Definition at line 739 of file videorender.cpp.
|
static |
Fits the video frame into a given area.
| frame | AVFrame with frame dimensions and aspect ratio information |
| dispX | x offset of video area |
| dispY | y offset of video area |
| dispWidth | width of video area |
| dispHeight | height of video area |
Definition at line 162 of file videorender.cpp.
Referenced by cVideoRender::SetPipBuffer(), and cVideoRender::SetVideoBuffer().
|
static |
Callback free primedata if av_buffer is unreferenced.
Definition at line 824 of file videorender.cpp.
Referenced by cDecodingStrategySoftware::PrepareDrmBuffer().