VS2008下调试的问题

weiyiabout 2010-06-08 08:34:53
再VC6.0里调试带命令行参数的程序,可以project->setting->调试(设置调试中的文件),即将命令行参数放到文件中了。在VS2008中怎么弄呢?求高手指点。谢谢啦
...全文
302 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
weiyiabout 2010-06-09
  • 打赏
  • 举报
回复
[Quote=引用 7 楼 macrojj 的回复:]

我有没有告诉你 JM的问题最好去H.264乐园去问啊 。

JM的命令行是输入的文件 也就是说你的encode.cfg
找到了这个.cfg 那些参数不用你输入
[/Quote]

那现在怎么办啊?
macrojj 2010-06-09
  • 打赏
  • 举报
回复
我有没有告诉你 JM的问题最好去H.264乐园去问啊 。

JM的命令行是输入的文件 也就是说你的encode.cfg
找到了这个.cfg 那些参数不用你输入

weiyiabout 2010-06-09
  • 打赏
  • 举报
回复
比如下面这个(还是一部分):
# New Input File Format is as follows
# <ParameterName> = <ParameterValue> # Comment
#
# See configfile.h for a list of supported ParameterNames


##########################################################################################
# Files
##########################################################################################
InputFile = "foreman_part_qcif.yuv" # Input sequence, YUV 4:2:0
InputHeaderLength = 0 # If the inputfile has a header, state it's length in byte here
StartFrame = 0 # Start frame for encoding. (0-N)
FramesToBeEncoded = 3 # Number of frames to be coded
FrameRate = 30 # Frame Rate per second (1-100)
SourceWidth = 176 # Image width in Pels, must be multiple of 16
SourceHeight = 144 # Image height in Pels, must be multiple of 16
TraceFile = "trace_enc.txt"
ReconFile = "test_rec.yuv"
OutputFile = "test.264"


##########################################################################################
# Encoder Control
##########################################################################################
ProfileIDC = 66 # Profile IDC (66=baseline, 77=main, 88=extended)
LevelIDC = 30 # Level IDC (e.g. 20 = level 2.0)

IntraPeriod = 0 # Period of I-Frames (0=only first)
IDRIntraEnable = 0 # Force IDR Intra (0=disable 1=enable)
QPFirstFrame = 28 # Quant. param for first frame (intra) (0-51)
QPRemainingFrame = 28 # Quant. param for remaining frames (0-51)
FrameSkip = 0 # Number of frames to be skipped in input (e.g 2 will code every third frame)
ChromaQPOffset = 0 # Chroma QP offset (-51..51).
UseHadamard = 1 # Hadamard transform (0=not used, 1=used)
SearchRange = 16 # Max search range
NumberReferenceFrames = 10 # Number of previous frames used for inter motion search (1-16)
PList0References = 0 # P slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
MbLineIntraUpdate = 0 # Error robustness(extra intra macro block updates)(0=off, N: One GOB every N frames are intra coded)
RandomIntraMBRefresh = 0 # Forced intra MBs per picture
InterSearch16x16 = 1 # Inter block search 16x16 (0=disable, 1=enable)
InterSearch16x8 = 1 # Inter block search 16x8 (0=disable, 1=enable)
InterSearch8x16 = 1 # Inter block search 8x16 (0=disable, 1=enable)
InterSearch8x8 = 1 # Inter block search 8x8 (0=disable, 1=enable)
InterSearch8x4 = 1 # Inter block search 8x4 (0=disable, 1=enable)
InterSearch4x8 = 1 # Inter block search 4x8 (0=disable, 1=enable)
InterSearch4x4 = 1 # Inter block search 4x4 (0=disable, 1=enable)
UseFME = 0 # Use fast motion estimation (0=disable, 1=enable)

##########################################################################################
# B Frames
##########################################################################################

NumberBFrames = 0 # Number of B frames inserted (0=not used)
QPBPicture = 30 # Quant. param for B frames (0-51)
DirectModeType = 0 # Direct Mode Type (0:Temporal 1:Spatial)
DirectInferenceFlag = 0 # Direct Inference Flag (0: Disable 1: Enable)
BList0References = 0 # B slice List 0 reference override (0 disable, N <= NumberReferenceFrames)
BList1References = 0 # B slice List 1 reference override (0 disable, N <= NumberReferenceFrames)
StoredBPictures = 0 # Stored B pictures (0=off, 1=on)

##########################################################################################
# SP Frames
##########################################################################################

SPPicturePeriodicity = 0 # SP-Picture Periodicity (0=not used)
QPSPPicture = 28 # Quant. param of SP-Pictures for Prediction Error (0-51)
QPSP2Picture = 27 # Quant. param of SP-Pictures for Predicted Blocks (0-51)


##########################################################################################
# Output Control, NALs
##########################################################################################

SymbolMode = 0 # Symbol mode (Entropy coding method: 0=UVLC, 1=CABAC)
OutFileMode = 0 # Output file mode, 0:Annex B, 1:RTP
PartitionMode = 0 # Partition Mode, 0: no DP, 1: 3 Partitions per Slice

##########################################################################################
# CABAC context initialization
##########################################################################################

ContextInitMethod = 0 # Context init (0: fixed, 1: adaptive)
FixedModelNumber = 0 # model number for fixed decision for inter slices ( 0, 1, or 2 )

##########################################################################################
# Interlace Handling
#########################################################################################

PicInterlace = 0 # Picture AFF (0: frame coding, 1: field coding, 2:adaptive frame/field coding)
MbInterlace = 0 # Macroblock AFF (0: frame coding, 1: field coding, 2:adaptive frame/field coding, 3:combined with PicInterlace=0, to do frame MBAFF))
IntraBottom = 0 # Force Intra Bottom at GOP Period
weiyiabout 2010-06-09
  • 打赏
  • 举报
回复
.cfg文件中的内容是这样的,在VC6.0中只要project->setting->调试(设置调试中的文件)就可以了,在VS中怎么办呢?另:这个文件不长,有的参数很多,文件也比较大,用命令行的话,就不合适了吧

test.264 ........H.264 coded bitstream
test_dec.yuv ........Output file, YUV 4:2:0 format
test_rec.yuv ........Ref sequence (for SNR)
10 ........Decoded Picture Buffer size
0 ........NAL mode (0=Annex B, 1: RTP packets)
0 ........SNR computation offset
1 ........Poc Scale (1 or 2)
500000 ........Rate_Decoder
104000 ........B_decoder
73000 ........F_decoder
leakybucketparam.cfg ........LeakyBucket Params

This is a file containing input parameters to the JVT H.264/AVC decoder.
The text line following each parameter is discarded by the decoder.
weiyiabout 2010-06-08
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cattycat 的回复:]

单击菜单project,选最后一个properties,弹出的对话框中,左侧选configuration properties,展开这个,下面选Debuggin,在右侧的command arguments中输入参数即可。
[/Quote]
谢谢,我先试试,原来在VC6里用的是文件XXX.cfg,里面的内容类似脚本的写法,一个字段对应一个值。
z569362161 2010-06-08
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 cattycat 的回复:]
单击菜单project,选最后一个properties,弹出的对话框中,左侧选configuration properties,展开这个,下面选Debuggin,在右侧的command arguments中输入参数即可。
[/Quote]
(加菲猫) 最厉害,听他的没错
cattycat 2010-06-08
  • 打赏
  • 举报
回复
单击菜单project,选最后一个properties,弹出的对话框中,左侧选configuration properties,展开这个,下面选Debuggin,在右侧的command arguments中输入参数即可。
ForestDB 2010-06-08
  • 打赏
  • 举报
回复
帮顶。

65,186

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧