/***************************************************************************** * VLD XvMC Nonstandard extension API. * * Copyright (c) 2004 The Unichrome Project. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHOR(S) OR COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * * Author: Thomas Hellström, 2004. */ #ifndef _VLDXVMC_H #define _VLDXVMC_H #include <X11/Xlib.h> #include <X11/extensions/XvMC.h> /* * New "Motion compensation type". */ #define XVMC_VLD 0x0020000 /* * Below Flags to be passed in the XvMCMpegControl structure 'flag' field. */ #define XVMC_PROGRESSIVE_SEQUENCE 0x00000010 /* * Zig-Zag Scan / Alternative Scan. */ #define XVMC_ZIG_ZAG_SCAN 0x00000000 #define XVMC_ALTERNATE_SCAN 0x00000100 /* * Frame DCT and frame prediction are used. / * Field prediction */ #define XVMC_PRED_DCT_FRAME 0x00000040 #define XVMC_PRED_DCT_FIELD 0x00000000 /* * Top / Bottom field first */ #define XVMC_TOP_FIELD_FIRST 0x00000080 #define XVMC_BOTTOM_FIELD_FIRST 0x00000000 /* * Motion vectors coded in intra macroblocks */ #define XVMC_CONCEALMENT_MOTION_VECTORS 0x00000200 /* * Which of two mappings between quantiser_scale_code * and quantiser_scale shall apply. */ #define XVMC_Q_SCALE_TYPE 0x00000400 /* * Intra VLC Format: Bit = 0, Bit = 1 * Intra blocks B-14 B-15 * Non-intra blocks B-14 B-14 */ #define XVMC_INTRA_VLC_FORMAT 0x00000800 /* * Also XVMC_SECOND_FIELD should be set in flags if active. */ #define XVMC_I_PICTURE 1 #define XVMC_P_PICTURE 2 #define XVMC_B_PICTURE 3 typedef struct _XvMCMpegControl{ unsigned BVMV_range, /* Backward vertical motion vector range */ BHMV_range, /* Backward horizontal motion vector range */ FVMV_range, /* Forward vertical motion vector range */ FHMV_range, /* Forward horizontal motion vector range */ picture_structure, /* XVMC_TOP_FIELD, XVMC_BOTTOM_FIELD, * XVMC_FRAME_PICTURE */ intra_dc_precision, /* 0x00 - 0x03 corresponds to 8 to 11 bits prec. */ picture_coding_type,/* XVMC_X_PICTURE */ mpeg_coding, /* XVMC_MPEG_2 */ flags; /* See above */ }XvMCMpegControl; /* * The following function is called BEFORE starting sending slices to the * lib. It grabs the decoder hardware and prepares it for coming slices. * The function XvMCSyncSurface will release the hardware for other contexts * in addition to it's current functionality. */ extern Status XvMCBeginSurface(Display *display, XvMCContext *context, XvMCSurface *target_surface, XvMCSurface *past_surface, XvMCSurface *future_surface, const XvMCMpegControl *control); /* * The quantizer matrix structure. This should be filled in by the user and * uploaded whenever a change is needed. The lib initializes with * default matrices and will automatically load the hardware with new matrices * on decoder context switches. To load data, set the corresponding load flag * to true and fill in the values. The VIA MPEG2 engine only uses the * intra_quantiser_matrix and the non_intra_quantiser_matrix. */ typedef struct _XvMCQMatrix { int load_intra_quantiser_matrix; int load_non_intra_quantiser_matrix; int load_chroma_intra_quantiser_matrix; int load_chroma_non_intra_quantiser_matrix; unsigned char intra_quantiser_matrix[64]; unsigned char non_intra_quantiser_matrix[64]; unsigned char chroma_intra_quantiser_matrix[64]; unsigned char chroma_non_intra_quantiser_matrix[64]; } XvMCQMatrix; /* * Upload a XvMCQMatrix structure to the clientlib. * The hardware will start using it the next XvMCBeginSurface. */ extern Status XvMCLoadQMatrix(Display *display, XvMCContext *context, const XvMCQMatrix *qmx); /* * Put a slice to the decoder. The hardware will start processing it * immediately. */ extern Status XvMCPutSlice(Display *display,XvMCContext *context, char *slice, int nBytes); /* * Put a slice without the slice start code to the decoder. * The hardware will start processing it * immediately. This function is for client optimization. * XvMCPutSlice(display,context,slice,nBytes) is equivalent to * XvMCPutSlice2(display,context,slice+4,nBytes-4,slice[3]); */ extern Status XvMCPutSlice2(Display *display,XvMCContext *context, char *slice, int nBytes, int sliceCode); #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
EVI.h | File | 1.53 KB | 0644 |
|
EVIproto.h | File | 3.03 KB | 0644 |
|
XI.h | File | 9.59 KB | 0644 |
|
XI2.h | File | 10.29 KB | 0644 |
|
XI2proto.h | File | 36.64 KB | 0644 |
|
XIproto.h | File | 41.62 KB | 0644 |
|
XKB.h | File | 27.58 KB | 0644 |
|
XKBgeom.h | File | 15.45 KB | 0644 |
|
XKBproto.h | File | 30.17 KB | 0644 |
|
XKBsrv.h | File | 27.37 KB | 0644 |
|
XKBstr.h | File | 19.18 KB | 0644 |
|
XResproto.h | File | 5.37 KB | 0644 |
|
Xeviestr.h | File | 180 B | 0755 |
|
Xv.h | File | 2.96 KB | 0644 |
|
XvMC.h | File | 3.54 KB | 0644 |
|
XvMCproto.h | File | 4.77 KB | 0644 |
|
Xvproto.h | File | 12.81 KB | 0644 |
|
ag.h | File | 1.67 KB | 0644 |
|
agproto.h | File | 5.06 KB | 0644 |
|
bigreqsproto.h | File | 1.91 KB | 0644 |
|
bigreqstr.h | File | 187 B | 0644 |
|
composite.h | File | 3.06 KB | 0644 |
|
compositeproto.h | File | 5.49 KB | 0644 |
|
cup.h | File | 1.32 KB | 0644 |
|
cupproto.h | File | 3.12 KB | 0644 |
|
damageproto.h | File | 3.64 KB | 0644 |
|
damagewire.h | File | 1.85 KB | 0644 |
|
dbe.h | File | 2.11 KB | 0644 |
|
dbeproto.h | File | 7.32 KB | 0644 |
|
dmx.h | File | 2.32 KB | 0644 |
|
dmxproto.h | File | 13.62 KB | 0644 |
|
dpmsconst.h | File | 1.67 KB | 0644 |
|
dpmsproto.h | File | 4.78 KB | 0644 |
|
dri2proto.h | File | 8.68 KB | 0644 |
|
dri2tokens.h | File | 2.41 KB | 0644 |
|
dri3proto.h | File | 6.34 KB | 0644 |
|
evieproto.h | File | 4.14 KB | 0755 |
|
ge.h | File | 1.74 KB | 0644 |
|
geproto.h | File | 2.36 KB | 0644 |
|
lbx.h | File | 2.18 KB | 0644 |
|
lbxproto.h | File | 25.22 KB | 0644 |
|
mitmiscconst.h | File | 1.47 KB | 0644 |
|
mitmiscproto.h | File | 2.22 KB | 0644 |
|
multibufconst.h | File | 2.51 KB | 0644 |
|
multibufproto.h | File | 8.79 KB | 0644 |
|
panoramiXproto.h | File | 5.6 KB | 0644 |
|
presentproto.h | File | 5.62 KB | 0644 |
|
presenttokens.h | File | 3.51 KB | 0644 |
|
randr.h | File | 6.75 KB | 0644 |
|
randrproto.h | File | 27.1 KB | 0644 |
|
recordconst.h | File | 2.02 KB | 0644 |
|
recordproto.h | File | 7.71 KB | 0644 |
|
recordstr.h | File | 258 B | 0644 |
|
render.h | File | 6.77 KB | 0644 |
|
renderproto.h | File | 13.66 KB | 0644 |
|
saver.h | File | 1.86 KB | 0644 |
|
saverproto.h | File | 5.14 KB | 0644 |
|
secur.h | File | 2.09 KB | 0644 |
|
securproto.h | File | 3.24 KB | 0644 |
|
shapeconst.h | File | 1.83 KB | 0644 |
|
shapeproto.h | File | 6.87 KB | 0644 |
|
shapestr.h | File | 252 B | 0644 |
|
shm.h | File | 1.61 KB | 0644 |
|
shmproto.h | File | 6.2 KB | 0644 |
|
shmstr.h | File | 2.07 KB | 0644 |
|
syncconst.h | File | 6.59 KB | 0644 |
|
syncproto.h | File | 11.26 KB | 0644 |
|
syncstr.h | File | 5.48 KB | 0644 |
|
vldXvMC.h | File | 5.29 KB | 0644 |
|
xcmiscproto.h | File | 3.1 KB | 0644 |
|
xcmiscstr.h | File | 185 B | 0644 |
|
xf86bigfont.h | File | 414 B | 0644 |
|
xf86bigfproto.h | File | 2.59 KB | 0644 |
|
xf86bigfstr.h | File | 191 B | 0644 |
|
xf86dga.h | File | 369 B | 0644 |
|
xf86dga1const.h | File | 931 B | 0644 |
|
xf86dga1proto.h | File | 4.74 KB | 0644 |
|
xf86dga1str.h | File | 191 B | 0644 |
|
xf86dgaconst.h | File | 2.48 KB | 0644 |
|
xf86dgaproto.h | File | 7.55 KB | 0644 |
|
xf86dgastr.h | File | 188 B | 0644 |
|
xf86misc.h | File | 3.81 KB | 0644 |
|
xf86mscstr.h | File | 6.36 KB | 0644 |
|
xf86vm.h | File | 2.06 KB | 0644 |
|
xf86vmproto.h | File | 16.51 KB | 0644 |
|
xf86vmstr.h | File | 185 B | 0644 |
|
xfixesproto.h | File | 13.12 KB | 0644 |
|
xfixeswire.h | File | 5.27 KB | 0644 |
|
xtestconst.h | File | 1.36 KB | 0644 |
|
xtestext1const.h | File | 5.31 KB | 0644 |
|
xtestext1proto.h | File | 7.68 KB | 0644 |
|
xtestproto.h | File | 3.31 KB | 0644 |
|