Yuav Ua Li Cas Pab Kom Overlay

Cov txheej txheem:

Yuav Ua Li Cas Pab Kom Overlay
Yuav Ua Li Cas Pab Kom Overlay

Video: Yuav Ua Li Cas Pab Kom Overlay

Video: Yuav Ua Li Cas Pab Kom Overlay
Video: 3 Yam Ua Rau Koj Poob Peev ( Lag Luam Mus Tsi Tau Zoo )- By Tayvee lyk 2024, Hlis ntuj nqeg
Anonim

Overlay yog kho vajtse muaj nuj nqi ntawm daim npav video uas ua rau nws ua kom rov ua kom tiav cov duab nyob rau ntawm lub vijtsam tseem ceeb (thawj qhov chaw) tsis tas theej cov cim xeeb video. Kev Overlay ua yeeb yaj kiab hauv video card digital-to-analog converters (RAMDAC) hauv kev tsim cov phiajcim video xa mus rau saib. RAMDAC scans thawj qhov chaw kab los ntawm kab thaum lub sijhawm txheej txheem thiab hloov mus rau daim duab overlay thaum nws los txog.

Yuav ua li cas yuav pab kom Overlay
Yuav ua li cas yuav pab kom Overlay

Tsim nyog

Qhov tshwj xeeb muaj kev cuam tshuam tshwj xeeb hauv tsev qiv ntawv

Cov Lus Qhia

Kauj ruam 1

Txhawm rau kom ua kom Overlay, nws yog qhov yuav tsum tau txiav txim siab sau ntawv qhov kev pab cuam uas qhia qee qhov tshwj xeeb tshwj xeeb rau saum npoo ntawm lub desktop, lossis hauv cov chaw ntawm cov xim tsis muaj xim (yog tias peb xav qhov teeb duab kos rau ntawm lub desktop yog hom loj).

Kauj ruam 2

Xaiv cov nyhuv tshwj xeeb. Hais txog kev xaiv ntawm cov teebmeem tshwj xeeb, koj yuav tsum tsis txhob muaj qhov nyuaj tshwj xeeb - lawv tuaj yeem qiv los ntawm cov piv txwv mus rau lub tsev qiv ntawv FastLIB, piv txwv li, cov kev teeb tsa rau kev teeb tsa rab phom. Tom qab ntawd, koj yuav tsum ntxiv qhov system yooj yim ntawm cov nplais rau cov nyhuv, thiab sau npe tus ua tiav raws li nws yuav yooj yim. Pib DirectDraw. Tsuas yog thawj qhov chaw yooj yim kom paub qhov pib.

Kauj ruam 3

Kuaj xyuas lub peev xwm los ua kom pom cov ntaub ntawv sau thiab tsim nws. Txhawm rau ua qhov no, siv GetOverlayCaps muaj nuj nqi. Tsis muaj dab tsi nyuaj thiab nthuav nyob rau hauv GetOverlayCaps - nws yog qhov hloov los ntawm DDCaps ntawm txhua me ntsis lossis tus nqi cuam tshuam nrog overlays rau hauv ntau cov qauv nruj - TOverlayCaps. Tom ntej no, koj yuav tsum txhim kho qhov loj me ntawm kev tawm tsam kom lawv sib haum nrog cov tsis tau thaum lub sijhawm siv txoj haujlwm. Hauv kev muaj tiag, qhov zoo li kev ua tiav ntawm qhov kev cai yog qhov tseem ceeb heev, yog li koj yuav tsum tsis txhob tsom tshwj xeeb rau nws - tshwj xeeb, nws qhov loj me yuav tsum tsis txwv nyob rau hauv kev txiav txim siab kom tsis txhob ua haujlwm qeeb, nws tsis tas yuav kuaj xyuas qhov loj me hauv bytes. rau kev nplua ntawm cov ntsiab lus ntawm cov cim xeeb hauv video, thiab lwm yam.

Kauj ruam 4

Feem ntau, nws tsim nyog xyuas ntau dua kom tau txais ib daim ntawv tshaj tawm, txij li cov txheej txheem dhau los ntawm kev tsim ib txheej yog ua los ntawm cov txheej txheem brute-force. Lub ntsiab lus yog tias tsis muaj cov haujlwm zoo li EnumOverlayFormats muaj nyob thiab tsis tau tsim, yog li tus neeg siv yuav tsum kuaj txhua hom kev xav thiab cia siab tias yuav muaj hmoo. Muaj, txawm li cas los xij, muaj nuj nqi IDirectDraw7GetFourCCCodes, uas yog tsim los txiav txim siab tsis-RGB hom code (FourCC), tab sis nws suav nrog tsis tsuas yog YUV tsim nyog, tab sis kuj tsim compressed qauv hom, thiab lwm yam. Txhawm rau siv tag nrho cov npe thiab txhais txhua hom ntawv raws li YUV lossis tsis-YUV zoo li tsis muaj peev xwm.

Kauj ruam 5

Tshem tawm cov duab ntawm lub desktop, yog tias tam sim no, thiab muab cov xim DCK rau nws. Ua kom cov xim DCK rov ua haujlwm. Kev hloov yuav tau taws teeb thiab npaj mus. Cov txiaj ntsig pom ntawm nws txoj kev siv tau tuaj yeem txheeb xyuas tau tom qab txo txhua qhov rai ua haujlwm.

Pom zoo: