vdr-plugin-softhddevice-drm-gles 1.4.0
buf2rgb.h
Go to the documentation of this file.
1
20#ifndef __BUF2RGB_H
21#define __BUF2RGB_H
22
23#include "drmbuffer.h"
24
25/****************************************************************************************
26 * Helpers
27 ***************************************************************************************/
28uint8_t *BufToRgb(cDrmBuffer *buf, int *size, int w, int h, enum AVPixelFormat dst_pix_fmt);
29uint8_t *ScaleRgb24(uint8_t *src, int *size, int src_w, int src_h, int dst_w, int dst_h);
30void AlphaBlend(uint8_t *result, uint8_t *front, uint8_t *back, const unsigned int width, const unsigned int height);
31int BlitVideo(uint8_t *dst, uint8_t *src, int dst_w, int dst_h, int dst_x, int dst_y, int src_w, int src_h);
32void PrintStreamData(const uint8_t *data, int size);
33
34#endif
uint8_t * ScaleRgb24(uint8_t *src, int *size, int src_w, int src_h, int dst_w, int dst_h)
Scale an image.
Definition: buf2rgb.cpp:152
void PrintStreamData(const uint8_t *data, int size)
Print raw stream data.
Definition: buf2rgb.cpp:288
int BlitVideo(uint8_t *dst, uint8_t *src, int dst_w, int dst_h, int dst_x, int dst_y, int src_w, int src_h)
Blit the video on black background.
Definition: buf2rgb.cpp:264
uint8_t * BufToRgb(cDrmBuffer *buf, int *size, int w, int h, enum AVPixelFormat dst_pix_fmt)
Convert a DRM buffer to rgb format image.
Definition: buf2rgb.cpp:74
void AlphaBlend(uint8_t *result, uint8_t *front, uint8_t *back, const unsigned int width, const unsigned int height)
Blend two images.
Definition: buf2rgb.cpp:203
DRM buffer header file.