summaryrefslogtreecommitdiff
path: root/libavdevice/fbdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/fbdev.c')
-rw-r--r--libavdevice/fbdev.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c
index 376d104e07..fffe655ab5 100644
--- a/libavdevice/fbdev.c
+++ b/libavdevice/fbdev.c
@@ -48,20 +48,20 @@
struct rgb_pixfmt_map_entry {
int bits_per_pixel;
int red_offset, green_offset, blue_offset, alpha_offset;
- enum PixelFormat pixfmt;
+ enum AVPixelFormat pixfmt;
};
static struct rgb_pixfmt_map_entry rgb_pixfmt_map[] = {
// bpp, red_offset, green_offset, blue_offset, alpha_offset, pixfmt
- { 32, 0, 8, 16, 24, PIX_FMT_RGBA },
- { 32, 16, 8, 0, 24, PIX_FMT_BGRA },
- { 32, 8, 16, 24, 0, PIX_FMT_ARGB },
- { 32, 3, 2, 8, 0, PIX_FMT_ABGR },
- { 24, 0, 8, 16, 0, PIX_FMT_RGB24 },
- { 24, 16, 8, 0, 0, PIX_FMT_BGR24 },
+ { 32, 0, 8, 16, 24, AV_PIX_FMT_RGBA },
+ { 32, 16, 8, 0, 24, AV_PIX_FMT_BGRA },
+ { 32, 8, 16, 24, 0, AV_PIX_FMT_ARGB },
+ { 32, 3, 2, 8, 0, AV_PIX_FMT_ABGR },
+ { 24, 0, 8, 16, 0, AV_PIX_FMT_RGB24 },
+ { 24, 16, 8, 0, 0, AV_PIX_FMT_BGR24 },
};
-static enum PixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo)
+static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo)
{
int i;
@@ -74,7 +74,7 @@ static enum PixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *var
return entry->pixfmt;
}
- return PIX_FMT_NONE;
+ return AV_PIX_FMT_NONE;
}
typedef struct {
@@ -99,7 +99,7 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx)
{
FBDevContext *fbdev = avctx->priv_data;
AVStream *st = NULL;
- enum PixelFormat pix_fmt;
+ enum AVPixelFormat pix_fmt;
int ret, flags = O_RDONLY;
ret = av_parse_video_rate(&fbdev->framerate_q, fbdev->framerate);
@@ -139,7 +139,7 @@ static av_cold int fbdev_read_header(AVFormatContext *avctx)
}
pix_fmt = get_pixfmt_from_fb_varinfo(&fbdev->varinfo);
- if (pix_fmt == PIX_FMT_NONE) {
+ if (pix_fmt == AV_PIX_FMT_NONE) {
ret = AVERROR(EINVAL);
av_log(avctx, AV_LOG_ERROR,
"Framebuffer pixel format not supported.\n");