freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

ffmpeg的解碼流程(完整版)

  

【正文】 ters *ap){if (!fmt) {我們來看看如何獲取Packet,又如何從Packet中解碼frame的。......av_free(pFrameRGB)。i)。// Did we get a video frame?if(==videoStream) {packet)=0) {[4]pCodecCtxwidth, pCodecCtxheight)。numBytes=avpicture_get_size(PIX_FMT_RGB24, pCodecCtxwidth,// Allocate an AVFrame structure // Could not open codecpCodec=avcodec_find_decoder(pCodecCtxcodec_id)。// Get a pointer to the codec context for the video streambreak。// Find the first video streampFormatCtx, argv[1], NULL, 0, NULL)!=0)return 1。numBytes。frameFinished。packet。AVPacketAVFrame y++)if(pFile==NULL)sprintf(szFilename, frame%, iFrame)。char szFilename[32]。FFMpeg的解碼流程(20090618 14:50:32)標(biāo)簽:雜談 fprintf(pFile, P6\n%d %d\n255\n, width, height)。fclose(pFile)。*pCodecCtx。*pFrame。[1]// Retrieve stream informationif(av_find_stream_info(pFormatCtx)0)videoStream=i。// Open codecreturn 1。// Assign appropriate parts of buffer to image planes in pFrameRGB// Free the packet that was allocated by av_read_frame}av_close_input_file(pFormatCtx)。從文件中讀取packet,從Packet中解碼相應(yīng)的frame。||avcodec_decode_video()解復(fù)用av_read_frame()do something()。if(解碼幀完成)+
點(diǎn)擊復(fù)制文檔內(nèi)容
語(yǔ)文相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1