Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/xine-lib/files/
Date: Wed, 04 Jan 2017 10:15:25
Message-Id: 1483524823.5a3ad9fcbeb0dce99007ae0a887190a59dc76fe9.soap@gentoo
1 commit: 5a3ad9fcbeb0dce99007ae0a887190a59dc76fe9
2 Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 30 14:24:03 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 4 10:13:43 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a3ad9fc
7
8 media-libs/xine-lib: remove unused file
9
10 Closes: https://github.com/gentoo/gentoo/pull/3286
11
12 media-libs/xine-lib/files/accel_vaapi.h | 135 --------------------------------
13 1 file changed, 135 deletions(-)
14
15 diff --git a/media-libs/xine-lib/files/accel_vaapi.h b/media-libs/xine-lib/files/accel_vaapi.h
16 deleted file mode 100644
17 index 666b23f..00000000
18 --- a/media-libs/xine-lib/files/accel_vaapi.h
19 +++ /dev/null
20 @@ -1,135 +0,0 @@
21 -/*
22 - * Copyright (C) 2008 the xine project
23 - *
24 - * This file is part of xine, a free video player.
25 - *
26 - * xine is free software; you can redistribute it and/or modify
27 - * it under the terms of the GNU General Public License as published by
28 - * the Free Software Foundation; either version 2 of the License, or
29 - * (at your option) any later version.
30 - *
31 - * xine is distributed in the hope that it will be useful,
32 - * but WITHOUT ANY WARRANTY; without even the implied warranty of
33 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 - * GNU General Public License for more details.
35 - *
36 - * You should have received a copy of the GNU General Public License
37 - * along with this program; if not, write to the Free Software
38 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
39 - *
40 - *
41 - * Common acceleration definitions for vdpau
42 - *
43 - *
44 - */
45 -
46 -#ifndef HAVE_XINE_ACCEL_VAAPI_H
47 -#define HAVE_XINE_ACCEL_VAAPI_H
48 -
49 -#ifdef __cplusplus
50 -extern "C" {
51 -#endif
52 -
53 -#ifdef HAVE_CONFIG_H
54 -#include "config.h"
55 -#endif
56 -
57 -#include <va/va_x11.h>
58 -#include <pthread.h>
59 -#ifdef HAVE_FFMPEG_AVUTIL_H
60 -# include <avcodec.h>
61 -#else
62 -# include <libavcodec/avcodec.h>
63 -#endif
64 -
65 -#if LIBAVCODEC_VERSION_MAJOR >= 53 || (LIBAVCODEC_VERSION_MAJOR == 52 && LIBAVCODEC_VERSION_MINOR >= 32)
66 -# define AVVIDEO 2
67 -#else
68 -# define AVVIDEO 1
69 -# define pp_context pp_context_t
70 -# define pp_mode pp_mode_t
71 -#endif
72 -
73 -#define NUM_OUTPUT_SURFACES 22
74 -
75 -#define SURFACE_FREE 0
76 -#define SURFACE_ALOC 1
77 -#define SURFACE_RELEASE 2
78 -#define SURFACE_RENDER 3
79 -#define SURFACE_RENDER_RELEASE 5
80 -
81 -struct vaapi_equalizer {
82 - VADisplayAttribute brightness;
83 - VADisplayAttribute contrast;
84 - VADisplayAttribute hue;
85 - VADisplayAttribute saturation;
86 -};
87 -
88 -typedef struct ff_vaapi_context_s ff_vaapi_context_t;
89 -
90 -struct ff_vaapi_context_s {
91 - VADisplay va_display;
92 - VAContextID va_context_id;
93 - VAConfigID va_config_id;
94 - int width;
95 - int height;
96 - int sw_width;
97 - int sw_height;
98 - int va_profile;
99 - unsigned int va_colorspace;
100 - VAImage va_subpic_image;
101 - VASubpictureID va_subpic_id;
102 - int va_subpic_width;
103 - int va_subpic_height;
104 - int is_bound;
105 - void *gl_surface;
106 - unsigned int soft_head;
107 - unsigned int valid_context;
108 - unsigned int va_head;
109 - unsigned int va_soft_head;
110 - vo_driver_t *driver;
111 - unsigned int last_sub_image_fmt;
112 - VASurfaceID last_sub_surface_id;
113 - struct vaapi_equalizer va_equalizer;
114 - VAImageFormat *va_image_formats;
115 - int va_num_image_formats;
116 - VAImageFormat *va_subpic_formats;
117 - int va_num_subpic_formats;
118 -};
119 -
120 -typedef struct ff_vaapi_surface_s ff_vaapi_surface_t;
121 -typedef struct vaapi_accel_s vaapi_accel_t;
122 -
123 -struct ff_vaapi_surface_s {
124 - unsigned int index;
125 - vaapi_accel_t *accel;
126 - VASurfaceID va_surface_id;
127 - unsigned int status;
128 -};
129 -
130 -struct vaapi_accel_s {
131 - unsigned int index;
132 - vo_frame_t *vo_frame;
133 -
134 -#if AVVIDEO > 1
135 - int (*avcodec_decode_video2)(vo_frame_t *frame_gen, AVCodecContext *avctx, AVFrame *picture,
136 - int *got_picture_ptr, AVPacket *avpkt);
137 -#else
138 - int (*avcodec_decode_video)(vo_frame_t *frame_gen, AVCodecContext *avctx, AVFrame *picture,
139 - int *got_picture_ptr, uint8_t *buf, int buf_size);
140 -#endif
141 - VAStatus (*vaapi_init)(vo_frame_t *frame_gen, int va_profile, int width, int height, int softrender);
142 - int (*profile_from_imgfmt)(vo_frame_t *frame_gen, enum PixelFormat pix_fmt, int codec_id, int vaapi_mpeg_sofdec);
143 - ff_vaapi_context_t *(*get_context)(vo_frame_t *frame_gen);
144 - int (*guarded_render)(vo_frame_t *frame_gen);
145 - ff_vaapi_surface_t *(*get_vaapi_surface)(vo_frame_t *frame_gen);
146 - void (*render_vaapi_surface)(vo_frame_t *frame_gen, ff_vaapi_surface_t *va_surface);
147 - void (*release_vaapi_surface)(vo_frame_t *frame_gen, ff_vaapi_surface_t *va_surface);
148 -};
149 -
150 -#ifdef __cplusplus
151 -}
152 -#endif
153 -
154 -#endif
155 -