Mercurial > mplayer.hg
changeset 8158:bffdd162d034
export imagedescription for qt video codecs
author | arpi |
---|---|
date | Mon, 11 Nov 2002 23:46:27 +0000 |
parents | 540d59c0ff5e |
children | 8703835345e3 |
files | libmpdemux/demux_mov.c libmpdemux/stheader.h |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Mon Nov 11 19:42:22 2002 +0000 +++ b/libmpdemux/demux_mov.c Mon Nov 11 23:46:27 2002 +0000 @@ -1,4 +1,4 @@ -//#define USE_QTX_CODECS +#define USE_QTX_CODECS // QuickTime MOV file parser by A'rpi // additional work by Atmos @@ -919,7 +919,7 @@ { ImageDescription* id=malloc(8+trak->stdata_len); trak->desc=id; id->idSize=8+trak->stdata_len; - id->cType=trak->fourcc; + id->cType=bswap_32(trak->fourcc); id->version=char2short(trak->stdata,8); id->revisionLevel=char2short(trak->stdata,10); id->vendor=char2int(trak->stdata,12); @@ -935,11 +935,13 @@ id->depth=char2short(trak->stdata,74); id->clutID=char2short(trak->stdata,76); memcpy(((char*)&id->clutID)+2,trak->stdata+78,trak->stdata_len-78); - if(1) // debug + sh->ImageDesc=id; +#if 0 { FILE *f=fopen("ImageDescription","wb"); fwrite(id,id->idSize,1,f); fclose(f); } +#endif } #endif
--- a/libmpdemux/stheader.h Mon Nov 11 19:42:22 2002 +0000 +++ b/libmpdemux/stheader.h Mon Nov 11 23:46:27 2002 +0000 @@ -108,6 +108,7 @@ // win32-compatible codec parameters: AVIStreamHeader video; BITMAPINFOHEADER* bih; + void* ImageDesc; // for quicktime codecs // codec-specific: void* context; // codec-specific stuff (usually HANDLE or struct pointer) } sh_video_t;