Searched refs:avctx (Results 251 - 275 of 1129) sorted by relevance

<<11121314151617181920>>

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/
H A Dxl.c39 static int decode_frame(AVCodecContext *avctx, argument
52 if (avctx->width % 4) {
53 av_log(avctx, AV_LOG_ERROR, "width is not a multiple of 4\n");
56 if (buf_size < avctx->width * avctx->height) {
57 av_log(avctx, AV_LOG_ERROR, "Packet is too small\n");
61 if ((ret = ff_get_buffer(avctx, p, 0)) < 0)
70 stride = avctx->width - 4;
72 for (i = 0; i < avctx->height; i++) {
76 for (j = 0; j < avctx
123 decode_init(AVCodecContext *avctx) argument
[all...]
H A Dcngenc.c36 static av_cold int cng_encode_close(AVCodecContext *avctx) argument
38 CNGContext *p = avctx->priv_data;
45 static av_cold int cng_encode_init(AVCodecContext *avctx) argument
47 CNGContext *p = avctx->priv_data;
50 if (avctx->channels != 1) {
51 av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
55 avctx->frame_size = 640;
57 if ((ret = ff_lpc_init(&p->lpc, avctx->frame_size, p->order, FF_LPC_TYPE_LEVINSON)) < 0)
59 p->samples32 = av_malloc_array(avctx->frame_size, sizeof(*p->samples32));
62 cng_encode_close(avctx);
69 cng_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) argument
[all...]
H A Dinternal.h178 * @param avctx the AVCodecContext of the encoder
188 int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size);
195 static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx, argument
200 return av_rescale_q(samples, (AVRational){ 1, avctx->sample_rate },
201 avctx->time_base);
209 int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags);
215 int ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame);
217 int ff_thread_can_start_frame(AVCodecContext *avctx);
219 int avpriv_h264_has_num_reorder_frames(AVCodecContext *avctx);
226 int ff_codec_open2_recursive(AVCodecContext *avctx, cons
[all...]
H A Dpamenc.c25 static int pam_encode_frame(AVCodecContext *avctx, AVPacket *pkt, argument
33 h = avctx->height;
34 w = avctx->width;
35 switch (avctx->pix_fmt) {
88 if ((ret = ff_alloc_packet2(avctx, pkt, n*h + 200)) < 0)
103 if (avctx->pix_fmt == AV_PIX_FMT_MONOBLACK){
124 static av_cold int pam_encode_init(AVCodecContext *avctx) argument
126 avctx->coded_frame = av_frame_alloc();
127 if (!avctx->coded_frame)
130 avctx
136 pam_encode_close(AVCodecContext *avctx) argument
[all...]
H A Dsgirledec.c38 static av_cold int sgirle_decode_init(AVCodecContext *avctx) argument
40 SGIRLEContext *s = avctx->priv_data;
41 avctx->pix_fmt = AV_PIX_FMT_BGR8;
73 static int decode_sgirle8(AVCodecContext *avctx, uint8_t *dst, argument
113 avpriv_request_sample(avctx, "opcode %d", v);
120 static int sgirle_decode_frame(AVCodecContext *avctx, void *data, argument
123 SGIRLEContext *s = avctx->priv_data;
126 if ((ret = ff_reget_buffer(avctx, s->frame)) < 0)
129 ret = decode_sgirle8(avctx, s->frame->data[0], avpkt->data, avpkt->size,
130 avctx
141 sgirle_decode_end(AVCodecContext *avctx) argument
[all...]
H A Dnuv.c86 static int get_quant(AVCodecContext *avctx, NuvContext *c, const uint8_t *buf, argument
91 av_log(avctx, AV_LOG_ERROR, "insufficient rtjpeg quant data\n");
114 static int codec_reinit(AVCodecContext *avctx, int width, int height, argument
117 NuvContext *c = avctx->priv_data;
131 if ((ret = av_image_check_size(height, width, 0, avctx)) < 0)
133 avctx->width = c->width = width;
134 avctx->height = c->height = height;
138 av_log(avctx, AV_LOG_ERROR,
151 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, argument
156 NuvContext *c = avctx
303 decode_init(AVCodecContext *avctx) argument
331 decode_end(AVCodecContext *avctx) argument
[all...]
H A Deacmv.c38 AVCodecContext *avctx; member in struct:CmvContext
45 static av_cold int cmv_decode_init(AVCodecContext *avctx){ argument
46 CmvContext *s = avctx->priv_data;
48 s->avctx = avctx;
49 avctx->pix_fmt = AV_PIX_FMT_PAL8;
68 for (i=0; i < s->avctx->height && buf_end - buf >= s->avctx->width; i++) {
69 memcpy(dst, buf, s->avctx->width);
71 buf += s->avctx
174 cmv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) argument
227 cmv_decode_end(AVCodecContext *avctx) argument
[all...]
H A Dlibwebpenc.c60 static av_cold int libwebp_encode_init(AVCodecContext *avctx) argument
62 LibWebPContext *s = avctx->priv_data;
65 if (avctx->global_quality < 0)
66 avctx->global_quality = 75 * FF_QP2LAMBDA;
67 s->quality = av_clipf(avctx->global_quality / (float)FF_QP2LAMBDA,
70 if (avctx->compression_level < 0 || avctx->compression_level > 6) {
71 av_log(avctx, AV_LOG_WARNING, "invalid compression level: %d\n",
72 avctx->compression_level);
73 avctx
104 libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) argument
[all...]
H A Dproresenc_anatoliy.c235 static void encode_ac_coeffs(AVCodecContext *avctx, PutBitContext *pb, argument
284 static int encode_slice_plane(AVCodecContext *avctx, int mb_count, argument
288 ProresContext* ctx = avctx->priv_data;
311 encode_ac_coeffs(avctx, &pb, blocks, blocks_per_slice, qmat);
317 static av_always_inline unsigned encode_slice_data(AVCodecContext *avctx, argument
323 ProresContext* ctx = avctx->priv_data;
325 *y_data_size = encode_slice_plane(avctx, mb_count, dest_y, luma_stride,
328 if (!(avctx->flags & CODEC_FLAG_GRAY)) {
329 *u_data_size = encode_slice_plane(avctx, mb_count, dest_u,
333 *v_data_size = encode_slice_plane(avctx, mb_coun
372 encode_slice(AVCodecContext *avctx, const AVFrame *pic, int mb_x, int mb_y, unsigned mb_count, uint8_t *buf, unsigned data_size, int unsafe, int *qp) argument
442 prores_encode_picture(AVCodecContext *avctx, const AVFrame *pic, uint8_t *buf, const int buf_size) argument
490 prores_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pict, int *got_packet) argument
540 prores_encode_init(AVCodecContext *avctx) argument
602 prores_encode_close(AVCodecContext *avctx) argument
[all...]
H A D012v.c27 static av_cold int zero12v_decode_init(AVCodecContext *avctx) argument
29 avctx->pix_fmt = AV_PIX_FMT_YUV422P16;
30 avctx->bits_per_raw_sample = 10;
32 if (avctx->codec_tag == MKTAG('a', '1', '2', 'v'))
33 avpriv_request_sample(avctx, "transparency");
38 static int zero12v_decode_frame(AVCodecContext *avctx, void *data, argument
42 const int width = avctx->width;
46 int stride = avctx->width * 8 / 3;
49 av_log(avctx, AV_LOG_ERROR, "Width 1 not supported.\n");
53 if ( avctx
[all...]
H A D8bps.c48 AVCodecContext *avctx; member in struct:EightBpsContext
56 static int decode_frame(AVCodecContext *avctx, void *data, argument
62 EightBpsContext * const c = avctx->priv_data;
65 unsigned int height = avctx->height; // Real image height
73 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
122 if (avctx->bits_per_coded_sample <= 8) {
140 static av_cold int decode_init(AVCodecContext *avctx) argument
142 EightBpsContext * const c = avctx->priv_data;
144 c->avctx = avctx;
[all...]
H A Dadxdec.c37 static av_cold int adx_decode_init(AVCodecContext *avctx) argument
39 ADXContext *c = avctx->priv_data;
42 if (avctx->extradata_size >= 24) {
43 if ((ret = ff_adx_decode_header(avctx, avctx->extradata,
44 avctx->extradata_size, &header_size,
46 av_log(avctx, AV_LOG_ERROR, "error parsing ADX header\n");
49 c->channels = avctx->channels;
53 avctx->sample_fmt = AV_SAMPLE_FMT_S16P;
95 static int adx_decode_frame(AVCodecContext *avctx, voi argument
170 adx_decode_flush(AVCodecContext *avctx) argument
[all...]
H A Dadxenc.c87 static int adx_encode_header(AVCodecContext *avctx, uint8_t *buf, int bufsize) argument
89 ADXContext *c = avctx->priv_data;
96 bytestream_put_byte(&buf, avctx->channels); /* channels */
97 bytestream_put_be32(&buf, avctx->sample_rate); /* sample rate */
110 static av_cold int adx_encode_init(AVCodecContext *avctx) argument
112 ADXContext *c = avctx->priv_data;
114 if (avctx->channels > 2) {
115 av_log(avctx, AV_LOG_ERROR, "Invalid number of channels\n");
118 avctx->frame_size = BLOCK_SAMPLES;
122 ff_adx_calculate_coeffs(c->cutoff, avctx
127 adx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) argument
[all...]
H A Davuidec.c27 static av_cold int avui_decode_init(AVCodecContext *avctx) argument
29 avctx->pix_fmt = AV_PIX_FMT_YUVA422P;
33 static int avui_decode_frame(AVCodecContext *avctx, void *data, argument
38 const uint8_t *src = avpkt->data, *extradata = avctx->extradata;
42 uint32_t extradata_size = avctx->extradata_size;
57 if (avctx->height == 486) {
62 opaque_length = 2 * avctx->width * (avctx->height + skip) + 4 * interlaced;
64 av_log(avctx, AV_LOG_ERROR, "Insufficient input data.\n");
67 transparent = avctx
[all...]
H A Dintelh263dec.c35 av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n");
41 av_log(s->avctx, AV_LOG_ERROR, "Bad marker\n");
45 av_log(s->avctx, AV_LOG_ERROR, "Bad H263 id\n");
54 av_log(s->avctx, AV_LOG_ERROR, "Intel H263 free format not supported\n");
64 av_log(s->avctx, AV_LOG_ERROR, "SAC not supported\n");
74 s->avctx->sample_aspect_ratio.num = 12;
75 s->avctx->sample_aspect_ratio.den = 11;
79 av_log(s->avctx, AV_LOG_ERROR, "Wrong Intel H263 format\n");
83 av_log(s->avctx, AV_LOG_ERROR, "Bad value for reserved field\n");
84 s->loop_filter = get_bits1(&s->gb) * !s->avctx
[all...]
H A Dlagarith.c52 AVCodecContext *avctx; member in struct:LagarithContext
150 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability encountered.\n");
154 av_log(rac->avctx, AV_LOG_ERROR, "Integer overflow encountered in cumulative probability calculation.\n");
160 av_log(rac->avctx, AV_LOG_ERROR, "Invalid probability run encountered.\n");
171 av_log(rac->avctx, AV_LOG_ERROR, "All probabilities are 0!\n");
185 av_log(rac->avctx, AV_LOG_ERROR, "Scaled probabilities invalid\n");
197 av_log(rac->avctx, AV_LOG_ERROR,
271 TL = l->avctx->pix_fmt == AV_PIX_FMT_YUV420P ? buf[-stride] : L;
373 avpriv_request_sample(l->avctx, "zero_run_line");
381 av_log(l->avctx, AV_LOG_ERRO
525 lag_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) argument
723 lag_decode_init(AVCodecContext *avctx) argument
733 lag_decode_end(AVCodecContext *avctx) argument
[all...]
H A Dnellymoserdec.c50 AVCodecContext* avctx; member in struct:NellyMoserDecodeContext
116 static av_cold int decode_init(AVCodecContext * avctx) { argument
117 NellyMoserDecodeContext *s = avctx->priv_data;
119 s->avctx = avctx;
125 avpriv_float_dsp_init(&s->fdsp, avctx->flags & CODEC_FLAG_BITEXACT);
128 avctx->sample_fmt = AV_SAMPLE_FMT_FLT;
134 avctx->channels = 1;
135 avctx->channel_layout = AV_CH_LAYOUT_MONO;
140 static int decode_tag(AVCodecContext *avctx, voi argument
189 decode_end(AVCodecContext * avctx) argument
[all...]
H A Dtta.c48 AVCodecContext *avctx; member in struct:TTAContext
80 av_log(s->avctx, AV_LOG_ERROR, "CRC error\n");
102 static int allocate_buffers(AVCodecContext *avctx) argument
104 TTAContext *s = avctx->priv_data;
112 s->ch_ctx = av_malloc_array(avctx->channels, sizeof(*s->ch_ctx));
121 static av_cold int tta_decode_init(AVCodecContext * avctx) argument
123 TTAContext *s = avctx->priv_data;
127 s->avctx = avctx;
130 if (avctx
213 tta_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) argument
386 init_thread_copy(AVCodecContext *avctx) argument
393 tta_decode_close(AVCodecContext *avctx) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/
H A Dmpeg4video_parser.c68 AVCodecContext *avctx,
76 s->avctx = avctx;
79 if (avctx->extradata_size && pc->first_picture){
80 init_get_bits(gb, avctx->extradata, avctx->extradata_size*8);
86 if (s->width && (!avctx->width || !avctx->height || !avctx->coded_width || !avctx
67 av_mpeg4_decode_header(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t *buf, int buf_size) argument
106 mpeg4video_parse(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) argument
[all...]
H A Dxxan.c32 AVCodecContext *avctx; member in struct:XanContext
41 static av_cold int xan_decode_init(AVCodecContext *avctx) argument
43 XanContext *s = avctx->priv_data;
45 s->avctx = avctx;
47 avctx->pix_fmt = PIX_FMT_YUV420P;
49 s->buffer_size = avctx->width * avctx->height;
157 static int xan_decode_chroma(AVCodecContext *avctx, unsigned chroma_off) argument
159 XanContext *s = avctx
239 xan_decode_frame_type0(AVCodecContext *avctx) argument
318 xan_decode_frame_type1(AVCodecContext *avctx) argument
363 xan_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) argument
402 xan_decode_end(AVCodecContext *avctx) argument
[all...]
H A Ddxa.c39 AVCodecContext *avctx; member in struct:DxaDecContext
50 static int decode_13(AVCodecContext *avctx, DxaDecContext *c, uint8_t* dst, uint8_t *src, uint8_t *ref) argument
59 data = code + ((avctx->width * avctx->height) >> 4);
63 for(j = 0; j < avctx->height; j += 4){
64 for(i = 0; i < avctx->width; i += 4){
181 av_log(avctx, AV_LOG_ERROR, "Unknown opcode %d\n", type);
191 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) argument
195 DxaDecContext * const c = avctx->priv_data;
218 if(avctx
291 decode_init(AVCodecContext *avctx) argument
307 decode_end(AVCodecContext *avctx) argument
[all...]
H A Dalacenc.c74 AVCodecContext *avctx; member in struct:AlacEncodeContext
83 for (ch = 0; ch < s->avctx->channels; ch++) {
85 for (i = 0; i < s->avctx->frame_size; i++) {
87 sptr += s->avctx->channels;
122 put_bits(&s->pbctx, 3, s->avctx->channels-1); // No. of channels -1
127 put_bits32(&s->pbctx, s->avctx->frame_size); // No. of samples in the frame
147 s->avctx->frame_size,
197 int i, mode, n = s->avctx->frame_size;
247 for (i = 1; i < s->avctx->frame_size; i++)
265 for (i = lpc.lpc_order + 1; i < s->avctx
389 alac_encode_init(AVCodecContext *avctx) argument
488 alac_encode_frame(AVCodecContext *avctx, uint8_t *frame, int buf_size, void *data) argument
539 alac_encode_close(AVCodecContext *avctx) argument
[all...]
H A Dlibxvid_rc.c69 xvid_2pass2.bitrate= s->avctx->bit_rate;
70 xvid_2pass2.vbv_size= s->avctx->rc_buffer_size;
71 xvid_2pass2.vbv_maxrate= s->avctx->rc_max_rate;
72 xvid_2pass2.vbv_initial= s->avctx->rc_initial_buffer_occupancy;
76 xvid_plg_create.fbase= s->avctx->time_base.den;
77 xvid_plg_create.fincr= s->avctx->time_base.num;
96 xvid_plg_data.fbase= s->avctx->time_base.den;
97 xvid_plg_data.fincr= s->avctx->time_base.num;
98 xvid_plg_data.min_quant[0]= s->avctx->qmin;
99 xvid_plg_data.min_quant[1]= s->avctx
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavformat/
H A Dadxdec.c41 AVCodecContext *avctx = s->streams[0]->codec; local
44 size = BLOCK_SIZE * avctx->channels;
68 AVCodecContext *avctx; local
74 avctx = s->streams[0]->codec;
81 avctx->extradata = av_mallocz(c->header_size + FF_INPUT_BUFFER_PADDING_SIZE);
82 if (!avctx->extradata)
84 if (avio_read(s->pb, avctx->extradata, c->header_size) < c->header_size) {
85 av_freep(&avctx->extradata);
88 avctx->extradata_size = c->header_size;
90 ret = avpriv_adx_decode_header(avctx, avct
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/
H A Dmlvdec.c78 static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, int size) argument
93 av_dict_set(&avctx->metadata, tag, value, AV_DICT_DONT_STRDUP_VAL);
96 static void read_uint8(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt) argument
100 av_dict_set(&avctx->metadata, tag, value, 0);
103 static void read_uint16(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt) argument
107 av_dict_set(&avctx->metadata, tag, value, 0);
110 static void read_uint32(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt) argument
114 av_dict_set(&avctx->metadata, tag, value, 0);
117 static void read_uint64(AVFormatContext *avctx, AVIOContext *pb, const char *tag, const char *fmt) argument
121 av_dict_set(&avctx
124 scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int file) argument
247 read_header(AVFormatContext *avctx) argument
384 read_packet(AVFormatContext *avctx, AVPacket *pkt) argument
438 read_seek(AVFormatContext *avctx, int stream_index, int64_t timestamp, int flags) argument
[all...]

Completed in 149 milliseconds

<<11121314151617181920>>