• Home
  • Raw
  • Download

Lines Matching +full:- +full:h

20  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 #include <vdpau/vdpau.h>
24 #include "libavutil/pixdesc.h"
25 #include "avcodec.h"
26 #include "internal.h"
27 #include "vp9data.h"
28 #include "vp9dec.h"
29 #include "hwconfig.h"
30 #include "vdpau.h"
31 #include "vdpau_internal.h"
36 VP9Context *s = avctx->priv_data; in vdpau_vp9_start_frame()
37 VP9SharedContext *h = &(s->s); in vdpau_vp9_start_frame() local
38 VP9Frame pic = h->frames[CUR_FRAME]; in vdpau_vp9_start_frame()
42 VdpPictureInfoVP9 *info = &pic_ctx->info.vp9; in vdpau_vp9_start_frame()
43 const AVPixFmtDescriptor *pixdesc = av_pix_fmt_desc_get(avctx->sw_pix_fmt); in vdpau_vp9_start_frame()
48 info->width = avctx->width; in vdpau_vp9_start_frame()
49 info->height = avctx->height; in vdpau_vp9_start_frame()
51 info->lastReference = VDP_INVALID_HANDLE; in vdpau_vp9_start_frame()
52 info->goldenReference = VDP_INVALID_HANDLE; in vdpau_vp9_start_frame()
53 info->altReference = VDP_INVALID_HANDLE; in vdpau_vp9_start_frame()
55 if (h->refs[h->h.refidx[0]].f && h->refs[h->h.refidx[0]].f->private_ref) { in vdpau_vp9_start_frame()
56 info->lastReference = ff_vdpau_get_surface_id(h->refs[h->h.refidx[0]].f); in vdpau_vp9_start_frame()
58 if (h->refs[h->h.refidx[1]].f && h->refs[h->h.refidx[1]].f->private_ref) { in vdpau_vp9_start_frame()
59 info->goldenReference = ff_vdpau_get_surface_id(h->refs[h->h.refidx[1]].f); in vdpau_vp9_start_frame()
61 if (h->refs[h->h.refidx[2]].f && h->refs[h->h.refidx[2]].f->private_ref) { in vdpau_vp9_start_frame()
62 info->altReference = ff_vdpau_get_surface_id(h->refs[h->h.refidx[2]].f); in vdpau_vp9_start_frame()
65 info->profile = h->h.profile; in vdpau_vp9_start_frame()
66 info->frameContextIdx = h->h.framectxid; in vdpau_vp9_start_frame()
67 info->keyFrame = h->h.keyframe; in vdpau_vp9_start_frame()
68 info->showFrame = !h->h.invisible; in vdpau_vp9_start_frame()
69 info->errorResilient = h->h.errorres; in vdpau_vp9_start_frame()
70 info->frameParallelDecoding = h->h.parallelmode; in vdpau_vp9_start_frame()
72 info->subSamplingX = pixdesc->log2_chroma_w; in vdpau_vp9_start_frame()
73 info->subSamplingY = pixdesc->log2_chroma_h; in vdpau_vp9_start_frame()
75 info->intraOnly = h->h.intraonly; in vdpau_vp9_start_frame()
76 info->allowHighPrecisionMv = h->h.keyframe ? 0 : h->h.highprecisionmvs; in vdpau_vp9_start_frame()
77 info->refreshEntropyProbs = h->h.refreshctx; in vdpau_vp9_start_frame()
79 info->bitDepthMinus8Luma = pixdesc->comp[0].depth - 8; in vdpau_vp9_start_frame()
80 info->bitDepthMinus8Chroma = pixdesc->comp[1].depth - 8; in vdpau_vp9_start_frame()
82 info->loopFilterLevel = h->h.filter.level; in vdpau_vp9_start_frame()
83 info->loopFilterSharpness = h->h.filter.sharpness; in vdpau_vp9_start_frame()
84 info->modeRefLfEnabled = h->h.lf_delta.enabled; in vdpau_vp9_start_frame()
86 info->log2TileColumns = h->h.tiling.log2_tile_cols; in vdpau_vp9_start_frame()
87 info->log2TileRows = h->h.tiling.log2_tile_rows; in vdpau_vp9_start_frame()
89 info->segmentEnabled = h->h.segmentation.enabled; in vdpau_vp9_start_frame()
90 info->segmentMapUpdate = h->h.segmentation.update_map; in vdpau_vp9_start_frame()
91 info->segmentMapTemporalUpdate = h->h.segmentation.temporal; in vdpau_vp9_start_frame()
92 info->segmentFeatureMode = h->h.segmentation.absolute_vals; in vdpau_vp9_start_frame()
94 info->qpYAc = h->h.yac_qi; in vdpau_vp9_start_frame()
95 info->qpYDc = h->h.ydc_qdelta; in vdpau_vp9_start_frame()
96 info->qpChDc = h->h.uvdc_qdelta; in vdpau_vp9_start_frame()
97 info->qpChAc = h->h.uvac_qdelta; in vdpau_vp9_start_frame()
99 info->resetFrameContext = h->h.resetctx; in vdpau_vp9_start_frame()
100 info->mcompFilterType = h->h.filtermode ^ (h->h.filtermode <= 1); in vdpau_vp9_start_frame()
101 info->uncompressedHeaderSize = h->h.uncompressed_header_size; in vdpau_vp9_start_frame()
102 info->compressedHeaderSize = h->h.compressed_header_size; in vdpau_vp9_start_frame()
103 info->refFrameSignBias[0] = 0; in vdpau_vp9_start_frame()
106 for (i = 0; i < FF_ARRAY_ELEMS(info->mbModeLfDelta); i++) in vdpau_vp9_start_frame()
107 info->mbModeLfDelta[i] = h->h.lf_delta.mode[i]; in vdpau_vp9_start_frame()
109 for (i = 0; i < FF_ARRAY_ELEMS(info->mbRefLfDelta); i++) in vdpau_vp9_start_frame()
110 info->mbRefLfDelta[i] = h->h.lf_delta.ref[i]; in vdpau_vp9_start_frame()
112 for (i = 0; i < FF_ARRAY_ELEMS(info->mbSegmentTreeProbs); i++) in vdpau_vp9_start_frame()
113 info->mbSegmentTreeProbs[i] = h->h.segmentation.prob[i]; in vdpau_vp9_start_frame()
115 for (i = 0; i < FF_ARRAY_ELEMS(info->activeRefIdx); i++) { in vdpau_vp9_start_frame()
116 info->activeRefIdx[i] = h->h.refidx[i]; in vdpau_vp9_start_frame()
117 info->segmentPredProbs[i] = h->h.segmentation.pred_prob[i]; in vdpau_vp9_start_frame()
118 info->refFrameSignBias[i + 1] = h->h.signbias[i]; in vdpau_vp9_start_frame()
121 for (i = 0; i < FF_ARRAY_ELEMS(info->segmentFeatureEnable); i++) { in vdpau_vp9_start_frame()
122 info->segmentFeatureEnable[i][0] = h->h.segmentation.feat[i].q_enabled; in vdpau_vp9_start_frame()
123 info->segmentFeatureEnable[i][1] = h->h.segmentation.feat[i].lf_enabled; in vdpau_vp9_start_frame()
124 info->segmentFeatureEnable[i][2] = h->h.segmentation.feat[i].ref_enabled; in vdpau_vp9_start_frame()
125 info->segmentFeatureEnable[i][3] = h->h.segmentation.feat[i].skip_enabled; in vdpau_vp9_start_frame()
127 info->segmentFeatureData[i][0] = h->h.segmentation.feat[i].q_val; in vdpau_vp9_start_frame()
128 info->segmentFeatureData[i][1] = h->h.segmentation.feat[i].lf_val; in vdpau_vp9_start_frame()
129 info->segmentFeatureData[i][2] = h->h.segmentation.feat[i].ref_val; in vdpau_vp9_start_frame()
130 info->segmentFeatureData[i][3] = 0; in vdpau_vp9_start_frame()
133 switch (avctx->colorspace) { in vdpau_vp9_start_frame()
136 info->colorSpace = 0; in vdpau_vp9_start_frame()
139 info->colorSpace = 1; in vdpau_vp9_start_frame()
142 info->colorSpace = 2; in vdpau_vp9_start_frame()
145 info->colorSpace = 3; in vdpau_vp9_start_frame()
148 info->colorSpace = 4; in vdpau_vp9_start_frame()
151 info->colorSpace = 5; in vdpau_vp9_start_frame()
154 info->colorSpace = 6; in vdpau_vp9_start_frame()
157 info->colorSpace = 7; in vdpau_vp9_start_frame()
170 VP9SharedContext *h = avctx->priv_data; in vdpau_vp9_decode_slice() local
171 VP9Frame pic = h->frames[CUR_FRAME]; in vdpau_vp9_decode_slice()
189 VP9SharedContext *h = avctx->priv_data; in vdpau_vp9_end_frame() local
190 VP9Frame pic = h->frames[CUR_FRAME]; in vdpau_vp9_end_frame()
205 uint32_t level = avctx->level; in vdpau_vp9_init()
207 switch (avctx->profile) { in vdpau_vp9_init()