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

正文內(nèi)容

ffmpeg的解碼流程(專業(yè)版)

2024-09-17 12:35上一頁面

下一頁面
  

【正文】 解碼|AVInputFormat *fmt,if(++i=5)pCodecCtxwidth,if(frameFinished) {// Determine required buffer size and allocate buffer// Find the decoder for the video streamfor(y=0。intintintuint8_tprintf(Please provide a movie file\n)。return 1。if(pCodec==NULL) {if(avcodec_open(pCodecCtx, pCodec)0)+av_open_input_stream調(diào)用指定demuxer的read_header函數(shù)以獲取相關(guān)do something()。解復(fù)用av_read_frame()|}// Assign appropriate parts of buffer to image planes in pFrameRGBreturn 1。// Retrieve stream information*pFrame。fclose(pFile)。fprintf(pFile, P6\n%d %d\n255\n, width, height)。 FFMpeg的解碼流程(20090618 14:50:32)標(biāo)簽:雜談sprintf(szFilename, frame%, iFrame)。AVPacketreturn 1。break。// Get a pointer to the codec context for the video stream // Could not open codecpCodecCtxwidth, pCodecCtxheight)。packet)=0) {// Did we get a video frame?我們來看看如何獲取Packet,又如何從Packet中解碼frame的。if (!fmt) {return 0。// Free the YUV frameSaveFrame(pFrameRGB, pCodecCtxwidth, pCodecCtxheight,i=0。 // Didn39。return 1。AVCodecfwrite(pFramedata[0]+y*pFramelinesize[0], 1, width*3, pFile)。return。FILE *pFile。pFile=fopen(szFilename, wb)。*
點(diǎn)擊復(fù)制文檔內(nèi)容
語文相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1