• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:sps

61     return h ? h->sps.num_reorder_frames : 0;
585 /* sps and pps in the avcC always have length coded with 2 bytes,
588 // Decode sps from avcC
589 cnt = *(p + 5) & 0x1f; // Number of sps
598 "Decoding sps %d from avcC failed\n", i);
643 av_assert0(h->sps.bit_depth_chroma == 0);
644 ff_h264chroma_init(&h->h264chroma, h->sps.bit_depth_chroma);
676 h->sps.bit_depth_luma = avctx->bits_per_raw_sample = 8;
705 if (h->sps.bitstream_restriction_flag &&
706 h->avctx->has_b_frames < h->sps.num_reorder_frames) {
707 h->avctx->has_b_frames = h->sps.num_reorder_frames;
772 if (h->sps.pic_struct_present_flag) {
816 if (cur->f.interlaced_frame || h->sps.pic_struct_present_flag) {
891 if (h->sps.bitstream_restriction_flag &&
892 h->avctx->has_b_frames < h->sps.num_reorder_frames) {
893 h->avctx->has_b_frames = h->sps.num_reorder_frames;
898 !h->sps.bitstream_restriction_flag) {
922 } else if(h->avctx->has_b_frames < out_of_order && !h->sps.bitstream_restriction_flag){
991 if (h->sps.chroma_format_idc)
1016 if (h->sps.chroma_format_idc) {
1125 const int max_frame_num = 1 << h->sps.log2_max_frame_num;
1132 if (h->sps.poc_type == 0) {
1133 const int max_poc_lsb = 1 << h->sps.log2_max_poc_lsb;
1147 } else if (h->sps.poc_type == 1) {
1151 if (h->sps.poc_cycle_length != 0)
1160 for (i = 0; i < h->sps.poc_cycle_length; i++)
1161 // FIXME integrate during sps parse
1162 expected_delta_per_poc_cycle += h->sps.offset_for_ref_frame[i];
1165 int poc_cycle_cnt = (abs_frame_num - 1) / h->sps.poc_cycle_length;
1166 int frame_num_in_poc_cycle = (abs_frame_num - 1) % h->sps.poc_cycle_length;
1170 expectedpoc = expectedpoc + h->sps.offset_for_ref_frame[i];
1175 expectedpoc = expectedpoc + h->sps.offset_for_non_ref_pic;
1178 field_poc[1] = field_poc[0] + h->sps.offset_for_top_to_bottom_field;
1204 * @param sps SPS
1208 int ff_h264_get_profile(SPS *sps)
1210 int profile = sps->profile_idc;
1212 switch (sps->profile_idc) {
1215 profile |= (sps->constraint_set_flags & 1 << 1) ? FF_PROFILE_H264_CONSTRAINED : 0;
1221 profile |= (sps->constraint_set_flags & 1 << 3) ? FF_PROFILE_H264_INTRA : 0;
1231 (h->sps.bitstream_restriction_flag &&
1232 !h->sps.num_reorder_frames)) {
1243 if (h->avctx->bits_per_raw_sample != h->sps.bit_depth_luma ||
1244 h->cur_chroma_format_idc != h->sps.chroma_format_idc) {
1247 (h->sps.bit_depth_luma != 8 || h->sps.chroma_format_idc > 1)) {
1252 if (h->sps.bit_depth_luma >= 8 && h->sps.bit_depth_luma <= 14 &&
1253 h->sps.bit_depth_luma != 11 && h->sps.bit_depth_luma != 13) {
1254 h->avctx->bits_per_raw_sample = h->sps.bit_depth_luma;
1255 h->cur_chroma_format_idc = h->sps.chroma_format_idc;
1256 h->pixel_shift = h->sps.bit_depth_luma > 8;
1258 ff_h264dsp_init(&h->h264dsp, h->sps.bit_depth_luma,
1259 h->sps.chroma_format_idc);
1260 ff_h264chroma_init(&h->h264chroma, h->sps.bit_depth_chroma);
1261 ff_h264qpel_init(&h->h264qpel, h->sps.bit_depth_luma);
1262 ff_h264_pred_init(&h->hpc, h->avctx->codec_id, h->sps.bit_depth_luma,
1263 h->sps.chroma_format_idc);
1267 ff_videodsp_init(&h->vdsp, h->sps.bit_depth_luma);
1270 h->sps.bit_depth_luma);
1594 || ((h->recovery_frame - h->frame_num) & ((1 << h->sps.log2_max_frame_num)-1)) > h->sei_recovery_frame_cnt) {
1596 ((1 << h->sps.log2_max_frame_num) - 1);