History

avcodec/mjpegenc: Don't use ff_ prefix for static functions

Andreas Rheinhardt committed 1 year ago

Commit 5689d9c1 parent 455ca921 file · +8 −8Browse files

Unified · Split

libavcodec/mjpegenc.c+8−8
@@ -390,7 +390,7 @@ static av_cold int mjpeg_encode_close(AVCodecContext *avctx) · 389 unmodified lines
390390 * @param table_id Which Huffman table the code belongs to.
391391 * @param code The encoded exponent of the coefficients and the run-bits.
392392 */
393−static inline void ff_mjpeg_encode_code(MJpegContext *s, uint8_t table_id, int code)
393+static inline void mjpeg_encode_code(MJpegContext *s, uint8_t table_id, int code)
394394 {
395395 MJpegHuffmanCode *c = &s->huff_buffer[s->huff_ncode++];
396396 c->table_id = table_id;
@@ -405,13 +405,13 @@ static inline void ff_mjpeg_encode_code(MJpegContext *s, uint8_t table_id, int c · 8 unmodified lines
405405 * @param val The coefficient.
406406 * @param run The run-bits.
407407 */
408−static void ff_mjpeg_encode_coef(MJpegContext *s, uint8_t table_id, int val, int run)
408+static void mjpeg_encode_coef(MJpegContext *s, uint8_t table_id, int val, int run)
409409 {
410410 int mant, code;
411411
412412 if (val == 0) {
413413 av_assert0(run == 0);
414− ff_mjpeg_encode_code(s, table_id, 0);
414+ mjpeg_encode_code(s, table_id, 0);
415415 } else {
416416 mant = val;
417417 if (val < 0) {
@@ -422,7 +422,7 @@ static void ff_mjpeg_encode_coef(MJpegContext *s, uint8_t table_id, int val, int · 4 unmodified lines
422422 code = (run << 4) | (av_log2_16bit(val) + 1);
423423
424424 s->huff_buffer[s->huff_ncode].mant = mant;
425− ff_mjpeg_encode_code(s, table_id, code);
425+ mjpeg_encode_code(s, table_id, code);
426426 }
427427 }
428428
@@ -445,7 +445,7 @@ static void record_block(MpegEncContext *s, int16_t *block, int n) · 16 unmodified lines
445445 dc = block[0]; /* overflow is impossible */
446446 val = dc - s->last_dc[component];
447447
448− ff_mjpeg_encode_coef(m, table_id, val, 0);
448+ mjpeg_encode_coef(m, table_id, val, 0);
449449
450450 s->last_dc[component] = dc;
451451
@@ -463,17 +463,17 @@ static void record_block(MpegEncContext *s, int16_t *block, int n) · 11 unmodified lines
463463 run++;
464464 } else {
465465 while (run >= 16) {
466− ff_mjpeg_encode_code(m, table_id, 0xf0);
466+ mjpeg_encode_code(m, table_id, 0xf0);
467467 run -= 16;
468468 }
469− ff_mjpeg_encode_coef(m, table_id, val, run);
469+ mjpeg_encode_coef(m, table_id, val, run);
470470 run = 0;
471471 }
472472 }
473473
474474 /* output EOB only if not already 64 values */
475475 if (last_index < 63 || run != 0)
476− ff_mjpeg_encode_code(m, table_id, 0);
476+ mjpeg_encode_code(m, table_id, 0);
477477 }
478478
479479 static void encode_block(MpegEncContext *s, int16_t *block, int n)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t