Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Fw: CodecCanScale-DirectX/Video codec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: CodecCanScale-DirectX/Video codec



----- Original Message -----
From: "Alex Telitsine" <email@hidden>
To: <email@hidden>
Sent: Monday, September 17, 2001 1:34 AM
Subject: CodecCanScale-DirectX/Video codec


Hi,
I'm trying to implement "custom SCALING" in QuickTime/Win32
Image Compressor component (x2 scaling).

It seems to be working with RGB32 color mode, but with YUV/DirectX,
QuickTime has following strange behavior:

During playback, when codec can keep up decoding speed everything
seems to be fine, QT sends address of "DirectX" surface to the
DrawBand and I can scale and output correct video. But during "seek"
operation, or playback speed problem (dropped frames), QuickTime
sends PixMap allocated in memory. In this case, all parameters in PixMap
(bounds, row bytes) seem to be OK, but memory block allocated
(baseAddr) is 2 times smaller. I can check it with IsValidWritePtr.
Second part of memory block is invalid. And even if I re-allocate the
memory block with NewPtr, QuickTime works, but updates only
"top part of picture". Scaling is x2 in both directions.
This problem doesn't occur with DirectX disabled, or in RGB32
PixelFormat. So far I've tested kYUVSPixelFormat and
k2vuyPixelFormat modes. Same problem occurs with "BandDecompress".
I could be wrong, but it seems like problem in QT/DirectX with
"CodecCanScale" memory allocation and output functions.

I wonder if QT engineers are reading this list.
Thank you in advance,
Alex Telitsine, Streambox Inc.
email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.