159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong/* ------------------------------------------------------------------ 259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Copyright (C) 1998-2009 PacketVideo 359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Licensed under the Apache License, Version 2.0 (the "License"); 559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * you may not use this file except in compliance with the License. 659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * You may obtain a copy of the License at 759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * http://www.apache.org/licenses/LICENSE-2.0 959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * 1059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * Unless required by applicable law or agreed to in writing, software 1159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * distributed under the License is distributed on an "AS IS" BASIS, 1259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 1359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * express or implied. 1459f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * See the License for the specific language governing permissions 1559f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * and limitations under the License. 1659f566c4ec3dfc097ad8163523e522280b27e5c3James Dong * ------------------------------------------------------------------- 1759f566c4ec3dfc097ad8163523e522280b27e5c3James Dong */ 1859f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#ifndef _VLC_ENCODE_H_ 1959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#define _VLC_ENCODE_H_ 2059f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 2159f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#include "mp4def.h" 2259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#include "mp4enc_api.h" 2359f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 2459f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutCoeff_Inter(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 2559f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutCoeff_Intra(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 2659f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutCBPY(Int cbpy, Char intra, BitstreamEncVideo *bitstream); 2759f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutMCBPC_Inter(Int cbpc, Int mode, BitstreamEncVideo *bitstream); 2859f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutMCBPC_Intra(Int cbpc, Int mode, BitstreamEncVideo *bitstream); 2959f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutMV(Int mvint, BitstreamEncVideo *bitstream); 3059f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutDCsize_chrom(Int size, BitstreamEncVideo *bitstream); 3159f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutDCsize_lum(Int size, BitstreamEncVideo *bitstream); 3259f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutDCsize_lum(Int size, BitstreamEncVideo *bitstream); 3359f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutCoeff_Inter_RVLC(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3459f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutCoeff_Intra_RVLC(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3559f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutRunCoeff_Inter(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3659f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutRunCoeff_Intra(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3759f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutLevelCoeff_Inter(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3859f566c4ec3dfc097ad8163523e522280b27e5c3James DongInt PutLevelCoeff_Intra(Int run, Int level, Int last, BitstreamEncVideo *bitstream); 3959f566c4ec3dfc097ad8163523e522280b27e5c3James Dong 4059f566c4ec3dfc097ad8163523e522280b27e5c3James DongVoid MB_CodeCoeff(VideoEncData *video, BitstreamEncVideo *bs); 4159f566c4ec3dfc097ad8163523e522280b27e5c3James DongVoid BlockCodeCoeff(RunLevelBlock *RLB, BitstreamEncVideo *bs, Int j_start, UChar Mode, Int rvlc, Int shortVideoHeader); 4259f566c4ec3dfc097ad8163523e522280b27e5c3James Dong#endif /* _VLC_ENCODE_H_ */ 43