Searched refs:mqc (Results 1 – 10 of 10) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | mqcenc.c | 31 static void byteout(MqcState *mqc) in byteout() argument 34 if (*mqc->bp == 0xff){ in byteout() 35 mqc->bp++; in byteout() 36 *mqc->bp = mqc->c >> 20; in byteout() 37 mqc->c &= 0xfffff; in byteout() 38 mqc->ct = 7; in byteout() 39 } else if ((mqc->c & 0x8000000)){ in byteout() 40 (*mqc->bp)++; in byteout() 41 mqc->c &= 0x7ffffff; in byteout() 44 mqc->bp++; in byteout() [all …]
|
D | mqcdec.c | 30 static void bytein(MqcState *mqc) in bytein() argument 32 if (*mqc->bp == 0xff) { in bytein() 33 if (*(mqc->bp + 1) > 0x8f) in bytein() 34 mqc->c++; in bytein() 36 mqc->bp++; in bytein() 37 mqc->c += 2 + 0xfe00 - (*mqc->bp << 9); in bytein() 40 mqc->bp++; in bytein() 41 mqc->c += 1 + 0xff00 - (*mqc->bp << 8); in bytein() 45 static int exchange(MqcState *mqc, uint8_t *cxstate, int lps) in exchange() argument 48 if ((mqc->a < ff_mqc_qe[*cxstate]) ^ (!lps)) { in exchange() [all …]
|
D | mqc.h | 52 void ff_mqc_initenc(MqcState *mqc, uint8_t *bp); 55 void ff_mqc_encode(MqcState *mqc, uint8_t *cxstate, int d); 58 int ff_mqc_flush(MqcState *mqc); 59 int ff_mqc_flush_to(MqcState *mqc, uint8_t *dst, int *dst_len); 70 void ff_mqc_initdec(MqcState *mqc, uint8_t *bp, int raw, int reset); 78 int ff_mqc_decode(MqcState *mqc, uint8_t *cxstate); 91 void ff_mqc_init_contexts(MqcState *mqc);
|
D | mqc.c | 111 void ff_mqc_init_contexts(MqcState *mqc) in ff_mqc_init_contexts() argument 113 memset(mqc->cx_states, 0, sizeof(mqc->cx_states)); in ff_mqc_init_contexts() 114 mqc->cx_states[MQC_CX_UNI] = 2 * 46; in ff_mqc_init_contexts() 115 mqc->cx_states[MQC_CX_RL] = 2 * 3; in ff_mqc_init_contexts() 116 mqc->cx_states[0] = 2 * 4; in ff_mqc_init_contexts()
|
D | jpeg2000dec.c | 1642 …if (ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + ff_jpeg2000_getsigctxno(t1->flags[(y+1) * t1->stri… in decode_sigpass() 1644 if (t1->mqc.raw) in decode_sigpass() 1645 …t1->data[(y) * t1->stride + x] = ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + ctxno) ? -mask : mask; in decode_sigpass() 1647 … t1->data[(y) * t1->stride + x] = (ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + ctxno) ^ xorbit) ? in decode_sigpass() 1674 int r = ff_mqc_decode(&t1->mqc, in decode_refpass() 1675 t1->mqc.cx_states + ctxno) in decode_refpass() 1698 if (!ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_RL)) in decode_clnpass() 1700 runlen = ff_mqc_decode(&t1->mqc, in decode_clnpass() 1701 t1->mqc.cx_states + MQC_CX_UNI); in decode_clnpass() 1702 runlen = (runlen << 1) | ff_mqc_decode(&t1->mqc, in decode_clnpass() [all …]
|
D | j2kenc.c | 620 ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, bit); in encode_sigpass() 624 …ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, (t1->flags[(y+1) * t1->stride + x+1] >> 15) ^ x… in encode_sigpass() 642 … ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, t1->data[(y) * t1->stride + x] & mask ? 1:0); in encode_refpass() 663 ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + MQC_CX_RL, rlen != 4); in encode_clnpass() 666 ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI, rlen >> 1); in encode_clnpass() 667 ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI, rlen & 1); in encode_clnpass() 672 … ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, t1->data[(y) * t1->stride + x] & mask ? 1:0); in encode_clnpass() 677 …ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, (t1->flags[(y+1) * t1->stride + x+1] >> 15) ^ x… in encode_clnpass() 687 … ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, t1->data[(y) * t1->stride + x] & mask ? 1:0); in encode_clnpass() 692 …ff_mqc_encode(&t1->mqc, t1->mqc.cx_states + ctxno, (t1->flags[(y+1) * t1->stride + x+1] >> 15) ^ x… in encode_clnpass() [all …]
|
D | jpeg2000.h | 124 MqcState mqc; member
|
D | Makefile | 432 OBJS-$(CONFIG_JPEG2000_ENCODER) += j2kenc.o mqcenc.o mqc.o jpeg2000.o \ 435 jpeg2000dwt.o mqcdec.o mqc.o
|
/third_party/ffmpeg/ |
D | MAINTAINERS | 214 mqc* Nicolas Bertrand
|
D | BUILD.gn | 592 # "//third_party/ffmpeg/libavcodec/mqc.c",
|