~ubuntu-branches/ubuntu/wily/mpv/wily

« back to all changes in this revision

Viewing changes to video/img_format.h

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2013-10-16 12:38:59 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20131016123859-wj70wr6n3mzimx3e
Tags: 0.2.0-1
* New upstream release
* Install sample configuration files as examples
* Enable Lua scripting support
* Remove copyright for talloc (not used anymore)
* Update installed docs list
* Update 01_spelling.patch
* Enable VAAPI support

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
    IMGFMT_START = 1000,
88
88
 
89
89
    // Planar YUV formats
90
 
 
91
90
    IMGFMT_444P,                // 1x1
92
91
    IMGFMT_422P,                // 2x1
93
92
    IMGFMT_440P,                // 1x2
253
252
    IMGFMT_VDPAU_FIRST = IMGFMT_VDPAU,
254
253
    IMGFMT_VDPAU_LAST  = IMGFMT_VDPAU_MPEG4,
255
254
 
 
255
    IMGFMT_VDA,
 
256
 
 
257
    IMGFMT_VAAPI,
 
258
    IMGFMT_VAAPI_MPEG2_IDCT,
 
259
    IMGFMT_VAAPI_MPEG2_MOCO,
 
260
 
 
261
    IMGFMT_VAAPI_FIRST = IMGFMT_VAAPI,
 
262
    IMGFMT_VAAPI_LAST = IMGFMT_VAAPI_MPEG2_MOCO,
 
263
 
 
264
 
256
265
    IMGFMT_END,
257
266
 
258
267
    // Redundant format aliases for native endian access
328
337
#define IMGFMT_IS_VDPAU(fmt) \
329
338
    (((fmt) >= IMGFMT_VDPAU_FIRST) && ((fmt) <= IMGFMT_VDPAU_LAST))
330
339
 
331
 
#define IMGFMT_IS_HWACCEL(fmt) IMGFMT_IS_VDPAU(fmt)
 
340
#define IMGFMT_IS_VDA(fmt) (((fmt) == IMGFMT_VDA))
 
341
 
 
342
#define IMGFMT_IS_VAAPI(fmt) \
 
343
    (((fmt) >= IMGFMT_VAAPI_FIRST) && ((fmt) <= IMGFMT_VAAPI_LAST))
 
344
 
 
345
#define IMGFMT_IS_HWACCEL(fmt) \
 
346
    (IMGFMT_IS_VDPAU(fmt) || IMGFMT_IS_VAAPI(fmt) || IMGFMT_IS_VDA(fmt))
332
347
 
333
348
 
334
349
struct mp_imgfmt_entry {