495{
502 DWORD comp_flags = 0;
508
510
512 FIXME(
"Driver not loaded\n");
514 }
515
516 hres = IMediaSample_QueryInterface(pSample, &IID_IMediaSample2, (
void**)&sample2);
518 FIXME(
"Use IMediaSample2\n");
519 IMediaSample2_Release(sample2);
520 }
521
522 is_preroll = IMediaSample_IsPreroll(pSample) ==
S_OK;
523 sync_point = IMediaSample_IsSyncPoint(pSample) ==
S_OK;
524
525 hres = IMediaSample_GetTime(pSample, &
start, &stop);
527 WARN(
"GetTime failed: %08x\n",
hres);
529 }
530
531 hres = IMediaSample_GetMediaType(pSample, &mt);
534
535 hres = IMediaSample_GetPointer(pSample, &
ptr);
537 WARN(
"GetPointer failed: %08x\n",
hres);
539 }
540
544
545 hres = IMediaSample_GetPointer(out_sample, &
buf);
548
550 FIXME(
"Unsupported temporal compression\n");
551
553 This->videoinfo->bmiHeader.biSizeImage =
This->max_frame_size;
557 WARN(
"ICCompress failed: %d\n",
res);
558 IMediaSample_Release(out_sample);
560 }
561
562 IMediaSample_SetActualDataLength(out_sample,
This->videoinfo->bmiHeader.biSizeImage);
563 IMediaSample_SetPreroll(out_sample, is_preroll);
564 IMediaSample_SetSyncPoint(out_sample, (comp_flags&
AVIIF_KEYFRAME) != 0);
565 IMediaSample_SetDiscontinuity(out_sample, (IMediaSample_IsDiscontinuity(pSample) ==
S_OK));
566
567 if (IMediaSample_GetMediaTime(pSample, &
start, &stop) ==
S_OK)
568 IMediaSample_SetMediaTime(out_sample, &
start, &stop);
569 else
570 IMediaSample_SetMediaTime(out_sample,
NULL,
NULL);
571
574 WARN(
"Deliver failed: %08x\n",
hres);
575
576 IMediaSample_Release(out_sample);
579}
GLenum GLuint GLenum GLsizei const GLchar * buf
DWORD VFWAPIV ICCompress(HIC hic, DWORD dwFlags, LPBITMAPINFOHEADER lpbiOutput, LPVOID lpData, LPBITMAPINFOHEADER lpbiInput, LPVOID lpBits, LPDWORD lpckid, LPDWORD lpdwFlags, LONG lFrameNum, DWORD dwFrameSize, DWORD dwQuality, LPBITMAPINFOHEADER lpbiPrev, LPVOID lpPrev)
HRESULT WINAPI BaseOutputPinImpl_Deliver(BaseOutputPin *This, IMediaSample *pSample)
HRESULT WINAPI BaseOutputPinImpl_GetDeliveryBuffer(BaseOutputPin *This, IMediaSample **ppSample, REFERENCE_TIME *tStart, REFERENCE_TIME *tStop, DWORD dwFlags)
#define VIDCF_FASTTEMPORALC
#define ICCOMPRESS_KEYFRAME