• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:avctx

52 static int decode_frame(AVCodecContext *avctx,
60 DPXContext *const s = avctx->priv_data;
72 av_log(avctx, AV_LOG_ERROR, "Packet too small for DPX header\n");
86 av_log(avctx, AV_LOG_ERROR, "DPX marker not found\n");
92 av_log(avctx, AV_LOG_ERROR, "Invalid data start offset\n");
106 avctx->bits_per_raw_sample =
110 avctx->sample_aspect_ratio.num = read32(&buf, endian);
111 avctx->sample_aspect_ratio.den = read32(&buf, endian);
121 av_log(avctx, AV_LOG_ERROR, "Unsupported descriptor %d\n", descriptor);
128 avctx->pix_fmt = PIX_FMT_RGBA;
130 avctx->pix_fmt = PIX_FMT_RGB24;
136 avctx->pix_fmt = PIX_FMT_RGB48;
143 avctx->pix_fmt = PIX_FMT_RGB48BE;
145 avctx->pix_fmt = PIX_FMT_RGB48LE;
151 av_log(avctx, AV_LOG_ERROR, "Unsupported color depth : %d\n", bits_per_color);
156 avctx->release_buffer(avctx, &s->picture);
157 if (av_image_check_size(w, h, 0, avctx))
159 if (w != avctx->width || h != avctx->height)
160 avcodec_set_dimensions(avctx, w, h);
161 if (avctx->get_buffer(avctx, p) < 0) {
162 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
172 if (source_packet_size*avctx->width*avctx->height > buf_end - buf) {
173 av_log(avctx, AV_LOG_ERROR, "Overread buffer. Invalid header?\n");
178 for (x = 0; x < avctx->height; x++) {
180 for (y = 0; y < avctx->width; y++) {
194 for (x = 0; x < avctx->height; x++) {
195 memcpy(ptr, buf, target_packet_size*avctx->width);
197 buf += source_packet_size*avctx->width;
200 for (x = 0; x < avctx->height; x++) {
202 for (y = 0; y < avctx->width; y++) {
219 static av_cold int decode_init(AVCodecContext *avctx)
221 DPXContext *s = avctx->priv_data;
223 avctx->coded_frame = &s->picture;
227 static av_cold int decode_end(AVCodecContext *avctx)
229 DPXContext *s = avctx->priv_data;
231 avctx->release_buffer(avctx, &s->picture);