Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with appending, copying usigned char* data ----Pls help Pin
Jon Hulatt20-Dec-04 22:05
Jon Hulatt20-Dec-04 22:05 
Generalwebservice Pin
hou_12620-Dec-04 19:03
hou_12620-Dec-04 19:03 
QuestionCreating an ActiveX? Pin
dSolariuM20-Dec-04 18:41
dSolariuM20-Dec-04 18:41 
GeneralAbout CEdit::LineLength Pin
freehawk20-Dec-04 18:28
freehawk20-Dec-04 18:28 
GeneralRe: About CEdit::LineLength Pin
David Crow21-Dec-04 2:07
David Crow21-Dec-04 2:07 
Generalownderdraw Pin
Tripura.K20-Dec-04 18:21
Tripura.K20-Dec-04 18:21 
GeneralEncrypting Video File Data Pin
Naveed Shoaib20-Dec-04 18:19
Naveed Shoaib20-Dec-04 18:19 
GeneralRe: Encrypting Video File Data Pin
Antti Keskinen20-Dec-04 22:34
Antti Keskinen20-Dec-04 22:34 
If you wish to use DirectShow, then the method is to generate a playback graph that first has a source filter (the video file), then possible decoding filters to get raw video data, then a Sample Grabber filter, which allows access to the samples passing through the graph and a Null Renderer filter, which will discard the original samples.

Then, using the Sample Grabber, grab every frame of the video, pass it through your encoding algorithm, and manually write a file. The filter provides a callback for an user-specified function whenever it receives a sample, so no data will be lost. Unfortunately, as far as I know, you cannot reinsert your encoded samples back into the same graph. You must manually write a file header and the actual file.

The final (and most difficult) option is to write a DirectShow filter using your algorithm. This is very similar to writing an encoding/decoding filter. The raw data comes from the input pin, is encrypted, and passes from the output pin. You can then insert an AVI Mux filter and a file writer filter to have a fully functioning encrypting graph. This is the most efficient way, but may require some learning and trial & error procedures.

-Antti Keskinen

----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"

-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
Questionhow to associate MFC with lex and yacc? Pin
chenbuaa20-Dec-04 16:40
chenbuaa20-Dec-04 16:40 
AnswerRe: how to associate MFC with lex and yacc? Pin
David Crow21-Dec-04 2:18
David Crow21-Dec-04 2:18 
GeneralResource related crash Pin
JWood20-Dec-04 13:30
JWood20-Dec-04 13:30 
GeneralRe: Resource related crash Pin
Ryan Binns20-Dec-04 17:01
Ryan Binns20-Dec-04 17:01 
GeneralDrawDragRect Pin
poiut20-Dec-04 10:51
poiut20-Dec-04 10:51 
GeneralRe: DrawDragRect Pin
JWood20-Dec-04 13:37
JWood20-Dec-04 13:37 
GeneralRe: DrawDragRect Pin
poiut22-Dec-04 6:29
poiut22-Dec-04 6:29 
QuestionWhy is my printed image blown up? Pin
giannibal20-Dec-04 9:49
giannibal20-Dec-04 9:49 
GeneralHelp me with image displaying solutions Pin
Budric B.20-Dec-04 7:44
Budric B.20-Dec-04 7:44 
GeneralAlso... Pin
Budric B.20-Dec-04 7:49
Budric B.20-Dec-04 7:49 
GeneralRe: Also... Pin
Christian Graus20-Dec-04 9:45
protectorChristian Graus20-Dec-04 9:45 
GeneralRe: Help me with image displaying solutions Pin
Christian Graus20-Dec-04 9:43
protectorChristian Graus20-Dec-04 9:43 
GeneralRe: Help me with image displaying solutions Pin
Budric B.20-Dec-04 10:31
Budric B.20-Dec-04 10:31 
GeneralWindows Hook Pin
RedDragon2k20-Dec-04 5:13
RedDragon2k20-Dec-04 5:13 
GeneralRe: Windows Hook Pin
Michael Dunn20-Dec-04 7:17
sitebuilderMichael Dunn20-Dec-04 7:17 
GeneralRe: Windows Hook Pin
RedDragon2k20-Dec-04 7:30
RedDragon2k20-Dec-04 7:30 
GeneralRe: Windows Hook Pin
heman15420-Dec-04 9:27
heman15420-Dec-04 9:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.